シンプルな注釈からのコールアウトで mapView を使用しています。以下のデリゲートメソッドを使用しました
- (void)mapView:(MKMapView *)_mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control {
lbhProfileMapPoint *mp = (lbhProfileMapPoint *) view.annotation;
NSLog(@"mp objectID: %@", mp.objectID);
self.objectId = mp.objectID;
[[lbhVariables sharedInstance] setMapViewChosenObjectId:self.objectId];
//[self performSegueWithIdentifier:@"profileSegue" sender:self];
lbhProfileViewController *pvc = [[lbhProfileViewController alloc] init];
[pvc setObjectId:self.objectId];
[self.navigationController pushViewController:pvc animated:NO];
}
ビューコントローラーには行きませんが、言い続けます
Unbalanced calls to begin/end appearance transitions for <lbhProfileViewController: 0x1f017ec0>.
実際には lbhProfileViewController で、ストーリーボード内で他のビューコントローラーを介して接続されています。しかし、このアクセサリ コールアウトでは、手動で呼び出したいと思います。ご覧のとおり、私は持っています
//[self performSegueWithIdentifier:@"profileSegue" sender:self];
しかし、代わりにこのメソッドを使用すると、依然として不均衡な呼び出しが発生します。