wrong orientation on UIViewController while animating it
问题 In order to use a UISplitViewController, I'm replacing my window root controller when navigating from one view controller to the other. In order to have some nice transition while doing so, I'm using a zooming effect like this: MyOtherViewController *controller = [[MyOtherViewController alloc] initWithNibName:@"MyOtherView" bundle:nil]; UIWindow *window = ((MyAppDelegate *)[[UIApplication sharedApplication] delegate]).window; controller.view.frame = [window frame]; controller.view.transform =