我有UIViewController
一个MKMapView
内部UINavigationViewController
层次结构。当我向另一个视图控制器推送或呈现并关闭时,地图视图会刷新图块。我想避免在出席和解雇后刷新。我努力了:
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
// ...
MyModalViewController * vc = segue.destinationViewController;
vc.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
// ...
}
但是地图视图在关闭后仍然刷新图块......