Bir viewController bir MKMapView
varsa ve o/o bu yöntemlerle haritayı dokunduğunda kullanıcıların hareketleri algılamak istiyorum:iOS'taki MKMapView kullanıcı dokunuşları Algılama 5
- (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;
uygulaması iOS ile çalışıyor
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>>
ve yukarıdaki 4 yöntemlerde kodu ulaşmış değildir: iPhone iOS 5 üzerinde çalışan uygulamayı hata ayıklama 3, iOS 4 ama, ben bu mesajı görebilirsiniz.
Nasıl düzeltebileceğinizi biliyor musunuz?
Teşekkürler.
Henüz iOS 5 üzerinde yorum yapamıyorum, ancak 3.2 ila 4 için, dokunma yöntemleri yerine bir UIGestureRecognizer kullanmak daha kolay olabilir. – Anna
http://stackoverflow.com/questions/1049889/how-to-intercept-touches-events-on-a-mkmapview-or-uiwebview-objects .. Bu Bağlantıyı Kontrol Edin – Kalpesh