Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image to circles #6

Open
dehlen opened this issue Jan 17, 2015 · 5 comments
Open

Add image to circles #6

dehlen opened this issue Jan 17, 2015 · 5 comments

Comments

@dehlen
Copy link

dehlen commented Jan 17, 2015

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.

@romaHerman
Copy link
Owner

@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?

@dehlen
Copy link
Author

dehlen commented Jan 19, 2015

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

@romaHerman
Copy link
Owner

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 #6 (comment).

@dehlen
Copy link
Author

dehlen commented Jan 19, 2015

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

@dehlen
Copy link
Author

dehlen commented Feb 23, 2015

Something new regarding this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants