0
실제 장치 (iPhone 3G, 3.1.3)에서 앱을 테스트 할 때 이미지에 문제가 있습니다. 시뮬레이터 (icode 4.1 SDK가있는 xcode 3)에서 문제가 없습니다. 죄송합니다. 이미지를 게시 할 수 없습니다. 여기는 내 첫 번째 질문입니다.MapKit MapView 실제 장치에서 겹쳐지는 주석
http://i.stack.imgur.com/Ct4on.jpg
나는 주석의 구현에 다음 코드가 있습니다
- (id)initWithLocation:(CLLocationCoordinate2D)coord {
self = [super init];
if (self) {
coordinate = coord;
}
return self;
}
을 그리고 이것은 헤더 파일의 일부입니다
@interface MyAnnotation : NSObject <MKAnnotation>
내가 만드는 곳이다 새 루프 (내부 루프) :
MyAnnotation *theAnnotation = [[MyAnnotation alloc] initWithLocation:theCoordinate];
theAnnotation.title = [single objectForKey:@"address"];
theAnnotation.objID = [single objectForKey:@"id"];
[self.mapView addAnnotation:theAnnotation];
[theAnnotation release];
이것에 대한 아이디어가 있으십니까? 나는 무엇을보아야할지 모르겠다./
어떻게 사람이 주석에 도청 때 감지 할? 또한이 작동 뭔가를 해킹 같은 소리 시뮬레이터에 있지만 전화가 아니기 때문에 나는 이것이 iOS 버그인지 내 잘못인지 알아 내려고 노력했다. – koichirose
나는 당신의 제안을 사용했다. 나는 MKPinAnnotationView를 오버라이드해야하고 " touchesBegan "메소드를 호출합니다. 감사! – koichirose