我有一個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;
// ...
}
但地圖視圖劇照駁回後刷新磚...