localization in UIScrollView

Discussion in 'iOS Programming' started by dok24, Jun 30, 2011.

  1. dok24 macrumors newbie

    Joined:
    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?
     
  2. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #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.
     

Share This Page