开发者

How to show more text on annotation view

开发者 https://www.devze.com 2023-02-11 14:32 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消