У меня есть MKMapView
в ViewController, и я хотел бы обнаруживать жесты пользователей, когда они касаются карты с помощью следующих методов:
- (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;
Приложение отлично работает с iOS 3, iOS 4, но когда я отлаживаю приложение с iPhone, работающим на iOS 5, я вижу это сообщение:
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>>
и код в вышеуказанных 4 методах не достигается.
Вы знаете, как это исправить?
Спасибо.