我跟着這個問題:iOS - MKMapView place annotation by using address instead of lat/long - 爲郵政編碼創建地圖註釋,而不是直接爲長/緯度值。在地圖註釋視圖上設置標題和副標題
這工作得很好,但是我想設置安諾
CLPlacemark *topResult = [placemarks objectAtIndex:0];
MKPlacemark *placemark = [[MKPlacemark alloc]
placemark.title = self.business.businessName;
placemark.subtitle = self.business.phoneNumber;
這不是爲標題和副標題工作是隻讀的標題和副標題。如何更改上面的內容以便我能夠設置標題和副標題?
請參考以下內容以進行查詢。 http://stackoverflow.com/questions/20645723/show-address-in-annotation-when-pin-is-dropped-on-map http://stackoverflow.com/questions/21541989/how-to-add-callout-into-individual-annotation-in-map-view – VRAwesome