0
MKMapViewのヘルプが必要です。画像をクリックした後に画像を表示すると、最大の画像とタイトル(AnnotationView)でポップアップが表示されますが、ボタンを追加できません。今、このAnnotationViewと閉じるボタンの問題
cancelButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
[cancelButton setImage:[UIImage imageNamed:@"map_dialog_cancel.png"] forState:UIControlStateNormal];
[cancelButton setFrame:CGRectMake(0.0 , 0.0, 25.0, 25.0)];
[cancelButton addTarget:self action:@selector(cancelButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
self.leftCalloutAccessoryView = cancelButton;
self.canShowCallout = YES;
しかし、私は私のポップアップで閉じるボタンを置くことができますどのように...私のカスタムポップアップ上のボタンでショースタンダールポップアップを起動してみてください?あなたのAnnotationViewクラスでuが必要なすべてを解決
を書いてください、より良い解決策を持っている
を追加しました。あなたはその答えを受け入れることができます。 –