MKPointAnnotation이 거의없는지도보기를 사용했습니다.iOS 배경 MKPointAnnotation
모두 작동하지만 뷰의 MKPoiintAnnotation의 "배경"은 "보이지 않음"이며 매우 "보이지"않습니다.
- (MKAnnotationView *)지도보기 : (MKMapView *)지도보기 viewForAnnotation : 나는 흰색에 테 배경 변경을 원, 내가 사용하려고 (ID) 주석
을하지만 didn를 이 방법으로 배경을 변경하는 데 성공하지 못했습니다. 무엇을 사용해야합니까? 들으,
편집 : "배경"으로 말하고자하는 텍스트 (이 예를 들어) "현재 위치"의 배경 :
편집 2 :
I '주석을 추가하려면이 코드를 사용하고 있습니다 :
당신은 사용자 정의 주석을 구축 할 필요가 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];
당신이 "배경"무엇을 의미합니까 :
는 스위프트의 예를 들어, 나는 사용자 정의 테이블 셀 클래스의로 awakeFromNib 기능에 다음과 같은 추가? – Mike잠깐, 나는 스크린을 가지고 간다. – deveLost
나는 나의 지위를 편집했다. – deveLost