문제

I want to draw polylines over and image loaded in an UIImageView.

Can someone give me some tips on where to start?

Thank you

도움이 되었습니까?

해결책

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top