iOS7 style mapview callout segue in the callout (calloutAccessoryControlTapped, UIButtonTypeDetailDisclosure)

◇◆丶佛笑我妖孽 提交于 2019-12-23 18:11:05

问题


I have mapview on iPad with annotations and callouts, each callout also has rightCalloutAccessoryView with detail disclosure button. I see the stock Maps app performs segue for callout details within the callout's object. It first performs a transition of the view from right to left like a push segue, then resizes the callout frame based on the detail's content.

How should I configure the segue in storyboard to be performed within the original callout and not replace the entire screen? Is it a push segue or popover? If it's popover, how should I configure anchor and passthrough?

- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
{
    [self performSegueWithIdentifier:@"contactDetail" sender:self];
}

来源:https://stackoverflow.com/questions/21487746/ios7-style-mapview-callout-segue-in-the-callout-calloutaccessorycontroltapped

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!