views:

49

answers:

0

Hi,

i´ve created a custom-uiview-class. There i create my view and handle my touch-events. I´m look for a "touchesBegan"-event. If the tapcount > 1, i want to create an additional UIImageView which holds a UIImage (and fills complete the old view) where the user can zoom that image.

So if the tapcount is only 1, i´m getting output in my console that there´s a touch but if the tapcount is larger that 1, i get no more touch-events/output.

From the apple-docs (UITouch-locationInView) i´ve read that, but i can´t figure out how i can fix it:

This method returns the current location of a UITouch object in the coordinate system of the specified view. Because the touch object might have been forwarded to a view from another view, this method performs any necessary conversion of the touch location to the coordinate system of the specified view.

When i change the overlay-view to be much smaller, the old-view outputs any touch-events, only the new overlay-view traces no events, so how can i get the touches to my new overlay-view?

Any help on that? Thanks