I want to draw polylines over and image loaded in an UIImageView.
Can someone give me some tips on where to start?
Thank you
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.
To draw polygon you should use the drawRect method located in UIView subclass.
So 2 solutions :
1°) You subclass UIImageView and in drawRect you draw your image and draw your polylines then
2°) You have an UIImageView and on the top an UIView subclass where you draw your polylines
Drawing the polylines won’t be a problem (you should find an answer on stack).
(like here : polyines on iphone)