pushViewController自定义动画
2014-10-19 20:47
381 查看
CATransition *transition = [CATransition animation]; transition.duration = 1.0f; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = @"cube"; transition.subtype = kCATransitionFromRight; transition.delegate = self; [self.navigationController.view.layer addAnimation:transition forKey:nil]; FirstViewController *firstViewController = [[DemoViewController alloc]init]; [self.navigationController pushViewController: firstViewController animated:YES]; 其中的动画类型有: animation.type = kCATransitionFade; animation.type = kCATransitionPush; animation.type = kCATransitionReveal; animation.type = kCATransitionMoveIn; animation.type = @"cube"; animation.type = @"suckEffect"; // 页面旋转 animation.type = @"oglFlip"; //水波纹 animation.type = @"rippleEffect"; animation.type = @"pageCurl"; animation.type = @"pageUnCurl"; animation.type = @"cameraIrisHollowOpen"; animation.type = @"cameraIrisHollowClose";
相关文章推荐
- 自定义push viewcontroll 的动画 (Custom animation for pushing a UIViewController)
- pushViewController自定义动画http://blog.csdn.net/ralbatr/article/details/22039233
- 自定义 pushViewController 的动画
- pushViewController自定义动画
- 【转】自定义presentviewcontroller和pushviewcontroller转场动画
- iOS pushViewController的自定义动画(圆形放大进入下个页面)
- pushViewController自定义动画
- ViewController push的自定义动画
- pushViewController自定义动画
- pushViewController自定义动画(转)
- pushViewController自定义动画
- pushViewController自定义动画(转)
- pushViewController自定义动画
- 不通过push,给viewcontroller自定义UINavigationBar,并加上返回按钮
- 自定义View Controller 转换动画
- iOS7新特性 ViewController转场切换(二) 系统视图控制器容器的切换动画---push pop present dismis
- pushViewController 动画
- IOS开动画效果之──实现 pushViewController 默认动画效果
- 更改pushViewController和popViewController的动画效果(转)
- IOS 自定义presentModalViewController动画