I am writing an app for iPhone iOS 3.0, where I want to use Map Kit and Address Book together. I have a database of places (restaurants, for example) with name, location, phone, address and some other data. I list them in a table view and when I choose some place I want to show Address Book Contact (with the help of ABUnknownPersonViewController
), containing all information, so it is easy for user to add this contact to Address Book.
Now when I click on the address, the app switches me to Maps app. How can I catch this event to show it in my MKMapView
(in my app internally)?
One more related question. Is there a way to implement "Direction from here", "Direction to here" buttons in standard Address Book Controller like in Maps app?