timeLineiOS icon indicating copy to clipboard operation
timeLineiOS copied to clipboard

Add image to circles

Open dehlen opened this issue 11 years ago • 5 comments

Is it possible to add an image to the cirlces by customizing the specific CALayer ? I tried this, but without luck:

in: - (void)addProgressBasedOnLabels:(NSArray *)labels currentStatus:(int)currentStatus {

circleLayer.contents = (__bridge id)[UIImage imageNamed:@"myImage"].CGImage;

I als tried to add the line to:

- (CAShapeLayer *)getLayerWithCircle:(UIBezierPath *)circle andStrokeColor:(UIColor *)strokeColor {

but same result. The image won't show up.

dehlen avatar Jan 17 '15 23:01 dehlen

@dehlen , I will think how to add this feature

Could you add some details, so I can understand better: you want an image inside circles?

romaHerman avatar Jan 19 '15 08:01 romaHerman

Yes right. I added the possibility to add some ovals to your library. Here you can find an example: bild1

Now i want to add the possibility to add images onto that CALayer. I think this image makes clear what i am trying to achieve: bild2

dehlen avatar Jan 19 '15 09:01 dehlen

Yes I understand Thank you I will try to add functionality soon

On Jan 19, 2015, at 11:10 AM, David Ehlen [email protected] wrote:

Yes right. I added the possibility to add some ovals to your library. Here you can find an example: https://cloud.githubusercontent.com/assets/680180/5798025/6c5d2bf8-9fc3-11e4-9b0e-482724c7de68.png Now i want to add the possibility to add images onto that CALayer. I think this image makes clear what i am trying to achieve: https://cloud.githubusercontent.com/assets/680180/5798026/6f79bf86-9fc3-11e4-9633-e795fd563f9e.png — Reply to this email directly or view it on GitHub https://github.com/romaHerman/timeLineiOS/issues/6#issuecomment-70463728.

romaHerman avatar Jan 19 '15 09:01 romaHerman

Great to hear that. Keep up the good work :)

dehlen avatar Jan 19 '15 09:01 dehlen

Something new regarding this issue ?

dehlen avatar Feb 23 '15 15:02 dehlen