how do I draw line when moving finger across screen in iPhone using core graphics.
Share
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.
You need to handle the touch events:
on touches began:
record the point & save it in an instance variable
on touches moved:
record the new ending point & save it in an instance variable
With these 2 points you can create a path & use Coregraphics to draw the path