1) 당신은 MKAnnotationView
을 하위 클래스 : 뷰포트 ???
여기 뷰포트의 이미지입니다. 나는 그것이 당신의 문제를 해결하는 가장 좋은 방법이라고 생각합니다.
2) 당신은 예를 들어, 귀하의 주석 콜 아웃 뷰를 사용자 정의 할 수 있습니다 :
- (MKAnnotationView *) mapView:(MKMapView *)theMapView viewForAnnotation:(id <MKAnnotation>)annotation {
static NSString* ItemAnnotationIdentifier = @"itemAnnotationIdentifier";
MKPinAnnotationView* pinView = (MKPinAnnotationView *)
[theMapView dequeueReusableAnnotationViewWithIdentifier:ItemAnnotationIdentifier];
if (!pinView)
{
// if an existing pin view was not available, create one
MKPinAnnotationView* customPinView = [[[MKPinAnnotationView alloc]
initWithAnnotation:annotation
reuseIdentifier:ItemAnnotationIdentifier]
autorelease];
customPinView.canShowCallout = YES;
UIImage *logo = [ImageProcessor scaleImage:[UIImage imageNamed:@"logo.png"] toSize:CGSizeMake(30, 30)];
customPinView.leftCalloutAccessoryView = [[[UIImageView alloc] initWithImage:logo] autorelease];
UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
rightButton.tag = [((ItemAnnotation *)annotation).itemId intValue];
[rightButton addTarget:self
action:@selector(showDetails:)
forControlEvents:UIControlEventTouchUpInside];
customPinView.rightCalloutAccessoryView = rightButton;
return customPinView;
}
else
{
pinView.annotation = annotation;
}
return pinView;
}
내가 Google지도 있습니다 ABT 질문 ... 어쨌든 난 당신의 개념을 구현하고 나는 그것을 가지고 .. :) 감사합니다. .. :) – Hisenberg
당신은 환영합니다 :) – knuku