How to show more text on annotation view
I have created an iPhone app which loads the map using the MKMapkit
. When clicking on the map, it shows MKAnnotation
with title a开发者_JS百科nd subtitle strings.
Now I want to know how I can show the annotation with multiple lines of text. Please show me how to do it. Thanks for your time and help.
Check out the MapCallOuts demo from Apple.
You will need to sublass the annotation view and make your own callout see this example How to add more details in MKAnnotation in iOS this may also help source provided https://developer.apple.com/library/ios/#samplecode/WeatherMap/index.html
精彩评论