私はスタンフォード iOS クラスを受講しています (申し訳ありませんが、私はこれらの連中の 1 人ですが、どうにかして学ばなければならないと思います)、MKMapViews に関する講義で教授が使用したコードとほぼ同じコードを使用していますが、私は彼がしなかったこの例外を受け取っています、そして私は本当にそれを理解することができません. 何が原因でしょうか?
私が得ている例外:
-[NSConcreteData _isResizable]: 認識されないセレクターがインスタンス 0x90a4c00 に送信されました
-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation
{
MKAnnotationView *aView = [mapView dequeueReusableAnnotationViewWithIdentifier:@"MapVC"];
if (!aView) {
aView = [[MKPinAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:@"MapVC"];
aView.canShowCallout=YES;
aView.leftCalloutAccessoryView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 30, 30)];
aView.rightCalloutAccessoryView= [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
}
aView.annotation=annotation;
[(UIImageView *)aView.leftCalloutAccessoryView setImage:nil];
return aView;
}
-(void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view
{
UIImage *image = [self.delegate getImageForMapViewController:self withAnnotation:view.annotation];
[(UIImageView *)view.leftCalloutAccessoryView setImage:image]; // this is where I get the exception.
}