我有一个UIViewController
与内UINavigationViewController
层次结构。当我对另一个视图控制器进行push-and-pop或者present-and-dismiss时,地图视图会刷新切片。我想在现在和结束之后避免让人耳目一新。我曾尝试:如何避免MKMapView刷新?
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
// ...
MyModalViewController * vc = segue.destinationViewController;
vc.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
// ...
}
但地图视图剧照驳回后刷新砖...