从一个viewController转换到另一个视图我在下面编写代码
if (UIInterfaceOrientationIsLandscape(STATUSBAR_ORIENTATION)) {
transition = [CATransition animation];
transition.duration = 0.3;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromBottom;
[self.view.window.layer addAnimation:transition forKey:nil];
}
else
{
transition = [CATransition animation];
transition.duration = 0.3;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromLeft;
[self.view.window.layer addAnimation:transition forKey:nil];
}
[self presentViewController:webView animated:NO completion:nil];
它工作正常,但是当我在风景中旋转到画像时,从右到左的视图过渡如何解决这个问题...请帮帮我