ipad - Draw a line when user touch the Uiimageview -
i working on project in have added uiimageview show image selected user. requirement if user want crop images can touch image according crop requirement. when user cropping image line should draw @ place user has touched. know uitouch class use it. unable it.
a couple of possible solutions.
1) create custom uiview contains uiimageview it's subview. make uiimageview same size custom uiview. add code detect touches on custom uiview , draw lines on top of uiimageview subview.
2) create custom clone of uiimageview draws image first 'background' , detects touches , draws lines on top of image.
also make sure have userinteractioneabled set yes on view receiving touches.
Comments
Post a Comment