久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在這種情況下 mapView:viewForAnnotation: 會被調用嗎

In which case that mapView:viewForAnnotation: will be called?(在這種情況下 mapView:viewForAnnotation: 會被調用嗎?)
本文介紹了在這種情況下 mapView:viewForAnnotation: 會被調用嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

現在我想在我的 iOS 應用中的地圖上添加靜態圖釘注釋.

Now I want to add a static pin annotation on map in my iOS app.

但我只想知道是否會調用委托方法 mapView:viewForAnnotation:.

But I just want to know if the delegate method mapView:viewForAnnotation: will be called.

在Apple文檔中,據說

In the Apple documentation, it is said that

 When it needs an annotation view, the map view calls the mapView:viewForAnnotation:    method of its delegate object. 

我已經閱讀了一些來自 Internet 的教程和來自 Apple 的官方文檔.而且我仍然不知道何時調用此方法.

I have read several tutorials from Internet and official documentation from Apple. And I still don't when this method will be called.

推薦答案

每當你調用 addAnnotation 方法 - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation >)annotation 被調用.看看截圖吧.

Whenever you call addAnnotation method - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id < MKAnnotation >)annotation gets called. Have look at the screenshot.

您可以在 MKMapView 類參考

You can find this on MKMapView Class Reference

附:在 addAnnotation 調用和 - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id < MKAnnotation >)annotation 處放置斷點,您將看到函數的流程輕松調用.

P.S. Put breakpoints at addAnnotation call and - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id < MKAnnotation >)annotation you will see the flow of function call easily.

這篇關于在這種情況下 mapView:viewForAnnotation: 會被調用嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Stop a UITableView from automatically scrolling(阻止 UITableView 自動滾動)
iOS UIScrollView Lazy Loading(iOS UIScrollView 延遲加載)
using iOS 6.0 SDK and building for iOS 5 Target causes UIScrollView setMinimumZoomScale to fail when running on iOS 5 simulator(在 iOS 5 模擬器上運行時,使用 iOS 6.0 SDK 并為 iOS 5 Target 構建會導致 UIScrollView setMinimumZ
Create partial-screen UIPageViewController programmatically(以編程方式創建部分屏幕 UIPageViewController)
how to make an ImageView zoomable with or without ScrollView.?(如何使用或不使用 ScrollView 使 ImageView 可縮放?)
UIImageView zoom and pinch in UIScrollView(UIImageView 在 UIScrollView 中縮放和捏合)
主站蜘蛛池模板: 91大神xh98xh系列全部 | 色噜噜色综合 | 中文字幕日本一区二区 | 日本精品视频在线 | 国产精品一区三区 | 日韩在线综合 | 亚洲精品第一页 | 国产精品久久久久久久一区探花 | 欧美日高清 | 日韩精品视频一区二区三区 | 一级做a毛片 | 酒色成人网 | 毛片a级毛片免费播放100 | 日韩a在线 | 四虎影院一区二区 | 亚洲国产成人精品久久久国产成人一区 | 欧美一区二区三区大片 | caoporn视频在线 | 久久久久国产精品 | 综合视频在线 | 韩三级在线观看 | 成人一区二区三区 | 天堂综合网久久 | 亚洲欧美中文日韩在线v日本 | 国产精品无| 国产欧美精品一区二区 | 日韩av三区| 午夜一区| 一本大道久久a久久精二百 国产成人免费在线 | 久久com | 国产精品成人国产乱一区 | 国产1区2区在线观看 | 可以免费看的毛片 | 亚洲国产精品视频一区 | 久久九| 欧美精品一区二区三区在线 | 国产精品毛片无码 | 国产福利91精品 | 九九久久免费视频 | 黄色国产视频 | 国产中文原创 |