How to show Map with multiple annotation in UITableViewCell?

时间:2015-09-14 15:28:39

标签: ios objective-c uitableview dictionary mapkit

I have UITableViewController and inside my cell i need to display map with multiple annotations.

I need to show map on my tableview cell and plot multiple annotation in that map also. Something like this Screenshot

I searched in google and couldnt get that much help.

2 个答案:

答案 0 :(得分:0)

If you don't need interaction with the map (scroll, zoom etc) you can use MKMapSnapshotter. It generates a snapshot image of the map and requires much less memory than actually using a map view. A useful link is this: http://nshipster.com/mktileoverlay-mkmapsnapshotter-mkdirections/

答案 1 :(得分:0)

不需要交互时的另一个选项是MapboxStatic库,它提供了地图的PNG或JPEG图像,非常适合表视图使用。