I have MKMapView
in the ViewController and you want to detect user gestures when it touches the map using these methods:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
The application works fine with iOS 3, iOS 4, but when I debug an application with an iPhone running iOS 5, I see this message:
Pre-iOS 5.0 touch delivery method forwarding relied upon. Forwarding -touchesCancelled:withEvent: to <MKAnnotationContainerView: 0x634790; frame = (0 0; 262144 262144); autoresizesSubviews = NO; layer = <CALayer: 0x634710>>
and the code from the above 4 methods is not achieved.
Do you know how to fix this?
Thanks.
source share