PDA

View Full Version : question about annotation in iphone




tranvutuan
Feb 2, 2012, 03:02 PM
Hi everyone
I am working on the map view and trying to customize so that it looks good. How can I do so that we can get the detail view looks like the below picture



robbieduncan
Feb 2, 2012, 03:16 PM
Have you read the "Annotating the Map" section of this document (http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKMapView_Class/MKMapView/MKMapView.html)? If so which part are you struggling with?

tranvutuan
Feb 2, 2012, 03:32 PM
Have you read the "Annotating the Map" section of this document (http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKMapView_Class/MKMapView/MKMapView.html)? If so which part are you struggling with?

Im struggling how to display a small table on top of the map. In mine, after clicking on the disclosure button, I end up with another view controller which show all detail about the annotation....Below pictures are what I have got so far

dejo
Feb 2, 2012, 03:42 PM
Your first screenshot shows a UIPopoverController, which is iPad-only. You can't use them on the iPhone / iPod touch, which is what your second set of screenshots seems to imply you're developing for.

tranvutuan
Feb 2, 2012, 08:09 PM
Your first screenshot shows a UIPopoverController, which is iPad-only. You can't use them on the iPhone / iPod touch, which is what your second set of screenshots seems to imply you're developing for.

Thanks for your advice...I spent whole day to find out the solution. You saved me a day.:)