一,工程图。
二,代码。
//点击任何处跳转到页面
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
CATransition* animTrans = [CATransition animation] ;
animTrans.type = kCATransitionFade;
animTrans.duration = 1;
animTrans.timingFunction =[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
[self.navigationController.view.layer addAnimation:animTrans forKey:nil];
FirstViewController *first = [[FirstViewController alloc]init];
[self.navigationController pushViewController:first animated:NO];
}
内容来源于网络如有侵权请私信删除
- 还没有人评论,欢迎说说您的想法!