push
CATransition *transition = [CATransition animation];
transition.duration = 1.0f;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = @"cube";
/// 向右側(cè)動(dòng)畫
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];
常用的動(dòng)畫
animation.type = kCATransitionFade;
animation.type = kCATransitionPush;
animation.type = kCATransitionReveal;
animation.type = kCATransitionMoveIn;
/// 盒子翻轉(zhuǎn)
animation.type = @"cube";
animation.type = @"suckEffect";
// 頁面旋轉(zhuǎn)
animation.type = @"oglFlip";
//水波紋
animation.type = @"rippleEffect";
/// 翻頁動(dòng)畫
animation.type = @"pageCurl";
animation.type = @"pageUnCurl";
/// 類似相機(jī)向外打開
animation.type = @"cameraIrisHollowOpen";
animation.type = @"cameraIrisHollowClose";