开发者

MKMapView - UIWebView as MKAnnotationView

Is there a way to handle MKAnnotationView as being a container for html formatted text? Generally saying, I would like to control MKAnnotationView through a UIWebView, UIWebView to be the view of the MKA开发者_JAVA技巧nnotationView.


I assume you mean you'd like to have web views as your map annotations. You could try making a custom view for your annotation, and adding a web view as a subview of this. However this could get quite heavy memory wise so you wouldn't want too many of these on your map at once. If it's a standard view layout you're after you're better off building a native UI and populating it with downloaded data.


I actually found an answer myself, it might be done, in a very ugly manner, but effectively. Here you are.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜