0
我用setViewControllers方法替換導航控制器中的視圖。 但我不喜歡過渡的外觀。如何在使用以下代碼時設置動畫樣式?如何從代碼設置動畫樣式?
UIViewController *newVC = [self.storyboard instantiateViewControllerWithIdentifier:@"SuccessScreen"];
NSMutableArray *viewControllers = [NSMutableArray arrayWithArray:[[self navigationController] viewControllers]];
[viewControllers removeLastObject];
[viewControllers addObject:newVC];
[[self navigationController] setViewControllers:viewControllers animated:YES];