作者:平凡简单 | 来源:互联网 | 2023-07-10 16:16
iamtryingtoapplyafliptransitionfrommycurrentviewcontrollertothenextviewcontroller.
i am trying to apply a flip transition from my current view controller to the next view controller. its working but its has noticeable lag(very noticeable). so, i would like to ask, do you guys have any suggestion/solutions to improve this uiview animation for flipping from one view controller to another?
我正在尝试应用一个从当前视图控制器到下一个视图控制器的翻转转换。它的工作有明显的滞后(非常明显)。我想问,你们有什么建议或解决方案来改进uiview动画从一个视图控制器切换到另一个视图控制器吗?
here is a snippet of my code, and thanks for reading, appreciate any helpful comments/suggestions. thanks
这里是我的代码片段,感谢您的阅读,感谢您提供的任何有用的评论和建议。谢谢
[UIView animateWithDuration:0.50 delay:0.00 options:0 animations:^{
[self.navigationController pushViewController:viewController animated:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
} completion:^(BOOL finished) {
}];
1 个解决方案