I want to draw CGPath on CALayer, but when I render CGPath in CALayer it always draw in the main UIView. Tell me how can I draw CGPath on CALayer.
When I try to draw path on CALayer it gives me something like this:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a CAShapeLayer and its ‘path’ property to draw a CGPath to a CALayer.
https://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/CAShapeLayer_class/Reference/Reference.html#//apple_ref/occ/instp/CAShapeLayer/path