D dok24 macrumors newbie Original poster Jun 30, 2011 11 0 Jun 30, 2011 #1 Hey all, I have a quick question... Basically, I have a UIScrollView, with a UIImageView imbedded into it. What I want to do is get the mouse clicks in relativity to the image and not the scrollview. Is there any way to accomplish this?
Hey all, I have a quick question... Basically, I have a UIScrollView, with a UIImageView imbedded into it. What I want to do is get the mouse clicks in relativity to the image and not the scrollview. Is there any way to accomplish this?
jiminaus macrumors 65816 Dec 16, 2010 1,449 1 Sydney Jun 30, 2011 #2 Mouse clicks?? I'm assuming you mean touches simulated by mouse clicks in the simulator. UIView has convertPoint:toView: and convertPoint:fromView: methods which will translate a point to/from the coordinates of another view.
Mouse clicks?? I'm assuming you mean touches simulated by mouse clicks in the simulator. UIView has convertPoint:toView: and convertPoint:fromView: methods which will translate a point to/from the coordinates of another view.