SecondViewController * vc = [[SecondViewController alloc]init];
UIApplication * app = [UIApplication sharedApplication];
AppDelegate * appDelegate = app.delegate ;
UIWindow * window = appDelegate.window ;
window.rootViewController = vc ;
// 设置翻页效果
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2];
//第一个参数:设置翻页效果
//第二个参数:切换视图的父视图
//第三个参数:是否使用缓存 ;
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:window cache:YES];
[UIView commitAnimations];
animation界面跳转翻页效果
最新推荐文章于 2024-05-21 09:41:44 发布