Getting the touched coordinates of image using UIScrollView

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

  1. XuishX macrumors newbie

    Oct 26, 2008
    I manage to get my UIScrollview working with zooming and 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

    Feb 12, 2008
    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. macrumors newbie

    Nov 5, 2008
    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

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

Share This Page