Suk*_*iya 1 navigation iphone cocoa-touch transition objective-c
如何UIViewAnimationTransition在UINavigation/ TabBartransition 之一中使用type ?
我发现的唯一方法是禁用内置过渡动画,并使用您自己的动画.对于UINavigationController,我使用类似下面的内容:
UIViewAnimationTransition trans = UIViewAnimationTransitionCurlUp;
[UIView beginAnimations: nil context: nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationTransition: trans forView: [delegate window] cache: YES];
[navController pushViewController:detailController animated:NO];
[UIView commitAnimations];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2505 次 |
| 最近记录: |