I am editing my question... what should i do if i want to draw a line in image by using CALAyer.
i want to draw a line inside the circle(circular image).
Example:- One point of the line will be the radius of the line and the other should be the end point of the cirlce(Like analog clock).As the campass of the iphone will move the line should move(like second hand in clock).
Please anyone help me.how to do this
Thanks in advance