Getting the touched coordinates of image using UIScrollView

Discussion in 'iOS Programming' started by XuishX, Oct 26, 2008.

  1. XuishX macrumors newbie

    Joined:
    Oct 26, 2008
    #1
    I manage to get my UIScrollview working with zooming and such.now I want to get the coordinate of the touched location on the image , how do I go about getting this data ?

    I took a long time trying to solve this but to no avail :(

    Thanks a million
     
  2. Niiro13 macrumors 68000

    Joined:
    Feb 12, 2008
    Location:
    Illinois
    #2
    Subclass the view that's behind the UIScrollView and implement the touchesBegan and touchesEnded methods.

    If it's an image, then subclass a UIView and draw the image.
     
  3. developer.in macrumors newbie

    Joined:
    Nov 5, 2008
    #3
    In continuation to this problem, are there any good tutorials around for multi-touch? I'm trying to implement an app similar to the photo library. Using this I'm able to open the previous or next image when user swipes his finger. But can;t get the zoom and pinch to work!
     
  4. XuishX thread starter macrumors newbie

    Joined:
    Oct 26, 2008
    #4
    thanks alot for the solution, now i am able to get my program working with great speed :D
     

Share This Page