我已經在地圖視圖中使用了幾個MKPointAnnotation。iOS背景MKPointAnnotation
所有的工作,但是,視圖的MKPoiintAnnotation的「背景」是「不可見的」,所以它不是很「可見」。
我想改變TE背景爲白色,我試圖用:
- (MKAnnotationView *)的MapView:(的MKMapView *)的MapView viewForAnnotation:(ID)註釋
但我沒用這種方法不能成功改變背景。我需要使用什麼? THX,
編輯:所謂 「背景」,我想意思是,文本 「當前位置」(在這個例子中)下的背景:
編輯2:
我「使用此代碼添加註釋:開始
annotationPoint = [[MKPointAnnotation alloc] init];
annotationCoord.latitude = [[item getPlace] getLatitude];
annotationCoord.longitude = [[item getPlace] getLongitude];
annotationPoint.coordinate = annotationCoord;
annotationPoint.title = item.getNom;
annotationPoint.subtitle = [Utils getDateString :item.getDeadline :@"dd/MM/yyyy HH:mm"];
[_mapView addAnnotation:annotationPoint];
你是什麼「背景」是什麼意思? – Mike 2014-09-02 14:22:17
等一下,我拍屏幕:) – deveLost 2014-09-02 14:23:09
我編輯了我的帖子。 – deveLost 2014-09-02 14:26:01