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

在這種情況下 mapView:viewForAnnotation: 會(huì)被調(diào)用嗎

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

問題描述

現(xiàn)在我想在我的 iOS 應(yīng)用中的地圖上添加靜態(tài)圖釘注釋.

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

但我只想知道是否會(huì)調(diào)用委托方法 mapView:viewForAnnotation:.

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

在Apple文檔中,據(jù)說

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. 

我已經(jīng)閱讀了一些來自 Internet 的教程和來自 Apple 的官方文檔.而且我仍然不知道何時(shí)調(diào)用此方法.

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

推薦答案

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

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 調(diào)用和 - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id < MKAnnotation >)annotation 處放置斷點(diǎn),您將看到函數(shù)的流程輕松調(diào)用.

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.

這篇關(guān)于在這種情況下 mapView:viewForAnnotation: 會(huì)被調(diào)用嗎?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Stop a UITableView from automatically scrolling(阻止 UITableView 自動(dòng)滾動(dòng))
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 模擬器上運(yùn)行時(shí),使用 iOS 6.0 SDK 并為 iOS 5 Target 構(gòu)建會(huì)導(dǎo)致 UIScrollView setMinimumZ
Create partial-screen UIPageViewController programmatically(以編程方式創(chuàng)建部分屏幕 UIPageViewController)
how to make an ImageView zoomable with or without ScrollView.?(如何使用或不使用 ScrollView 使 ImageView 可縮放?)
UIImageView zoom and pinch in UIScrollView(UIImageView 在 UIScrollView 中縮放和捏合)
主站蜘蛛池模板: 亚洲成人精| 免费国产一区 | 亚洲色图插插插 | 黄色网毛片 | 中文字幕精品视频 | 国产日韩一区 | 黄色大片在线 | 黄色国产区| 国产精品久久国产精品久久 | 欧洲精品久久久久毛片完整版 | 亚洲精品一区二区在线观看 | 婷婷综合色 | 免费视频99| 日韩精品免费视频 | 国产中文在线观看 | 污免费网站 | 欧美日韩国产综合在线 | 天天看片天天干 | 国产在线永久免费 | 欧州一区 | 一区二区三区电影在线观看 | 一级特黄在线 | 欧美日韩精品一区二区天天拍 | 久久99精品国产99久久6男男 | 在线观看亚洲精品视频 | 99精品亚洲国产精品久久不卡 | 成年人免费看的视频 | 欧美精品久久久久 | 亚洲成人一区二区在线 | 婷婷激情在线 | www.9191.com | 久久九九色 | 欧美一级黑人aaaaaaa做受 | 亚洲精品视频在线播放 | 丝袜一区二区三区 | 中文字字幕在线中文乱码范文 | 日本成人片在线观看 | 一区二区日本 | 狠狠操天天操 | 99国产精品久久久久久久 | 久久99精品久久久久子伦 |