8
2 시간의 인터넷 검색 결과를 찾지 못했지만 이것이 내 마지막 촬영입니다.맞춤 주석, 콜 아웃 및 파란색 정확도 원이있는 현재 위치
mkmapview에서 사용자의 현재 위치에 대한 사용자 정의 주석을 사용하고 싶습니다. 그러나 나는 또한 주변에 파란색 정확도 원을 갖고 싶습니다.
이 작업을 수행 할 수 있습니까?
그렇지 않은 경우 원과 함께 기본 파란색 점에 부름을 추가 할 수 있습니까?
내가 필요한 이유는 내 앱에서 현재 위치 도트가 다른 주석 아래 사라지는 경우가 있기 때문입니다. 그래서 저는 현재 위치로 호출 부호가있는 자주색 핀을 사용합니다. 어떤 조언에 대한
if ([annotation isKindOfClass:MKUserLocation.class])
{
MKPinAnnotationView *userAnnotationView = (MKPinAnnotationView *)[self.mapView dequeueReusableAnnotationViewWithIdentifier:@"UserLocation"];
if (userAnnotationView == nil) {
userAnnotationView = [[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"UserLocation"]autorelease];
}
else
userAnnotationView.annotation = annotation;
userAnnotationView.enabled = YES;
userAnnotationView.animatesDrop = NO;
userAnnotationView.pinColor = MKPinAnnotationColorPurple;
userAnnotationView.canShowCallout = YES;
[self performSelector:@selector(openCallout:) withObject:annotation afterDelay:0.01];
return userAnnotationView;
}
감사 :
다음은 주석에 대한 내 코드입니다. 건배, 기독교
검색된 4h, ty! – SaifDeen