For example, I want to display the current x, y, width and height of the map rect, but I don’t know what events should I handle. At least I want to catch the double click, zoom and dragging.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check the documentation for the
MKMapViewDelegateprotocol. You have these available methods: http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKMapViewDelegate_Protocol/MKMapViewDelegate/MKMapViewDelegate.htmlAlso,
MKMapViewinherits fromUIScrollView, so by setting yourself as the delegate, you can also adopt theUIScrollViewDelegateprotocol, and use these methods: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIScrollViewDelegate_Protocol/Reference/UIScrollViewDelegate.html