I am using StoryBoards in my application. I have MKMapView with annotations. I applied the calloutAccessoryControlTapped method and want to go to the TableView when the user clicks on UIButtonTypeDetailDisclosure.
(1) Is there a way to use segue from calloutAccessoryControlTapped?
(2) Without using segue, I get a black screen.
- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control { ... DetailViewController *detailViewController = [[DetailViewController alloc]init]; detailViewController.detailItem = managedObject; [self.navigationController pushViewController:detailViewController animated:YES]; }
source share