一个3D翻转的转场动画毕业论文设计,外文翻译,开题

3995
    


来源:
Licence:
联系:
平台:
环境:
大小:
更新:
标签:
联系方式 :
免费下载 ×

下载APP,支持永久资源免费下载

限免产品服务请联系qq:1585269081

下载APP
免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
下载 ×

下载APP,资源永久免费


如果出现不能下载的情况,请联系站长,联系方式在下方。

免费下载 ×

下载论文助手APP,资源永久免费

免费获取

如果你已经登录仍然出现不能下载的情况,请【点击刷新】本页面或者联系站长


KYPushTransition 一个3D翻转的转场动画,可以手势百分比控制。 Usage 以下代码全在第一个视图控制器中实现: 进入第一个控制器。在跳转之前,设置后一个控制器的代理,比如我用Segue的话,就在 -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender 里设置后一个控制器的代理为前一个控制器,并且让后一个控制器实现手势返回的交互: -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ SecondViewController *secVC = (SecondViewController *)segue.destinationViewController; secVC.transitioningDelegate = self; popInteractive = [KYPopInteractiveTransition new]; [popInteractive addPopGesture:secVC]; } 然后分两种情况: 1)如果只是一个VC present 到另一个 VC,那么你需要实现 UIViewControllerTransitioningDelegate 中的两个协议,分别对应 present 和 dismiss ,返回对应的动画: - (id )animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source{ KYPushTransition *flip = [KYPushTransition new]; return flip; } - (id )animationControllerForDismissedController:(UIViewController *)dismissed{ KYPopTransition *flip = [KYPopTransition new]; return flip; } 然后是手势交互的方法,比较常用的情况是返回上一个VC采用手势,所以这里只实现了dismiss的方法: - (id )interactionControllerForDismissal:(id )animator{ return popInteractive.interacting ? popInteractive : nil; } 2)如果你是用UINavigationController控制两个VC,那么需要实现 UINavigationControllerDelegate 中的: - (id )navigationController:(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation fromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC{ if (operation == UINavigationControllerOperationPush) { KYPushTransition *flip = [KYPushTransition new]; return flip; }else if (operation == UINavigationControllerOperationPop){ KYPopTransition *flip = [KYPopTransition new]; return flip; }else{ return nil; } } UINaviagtionController控制VC的情况下, UINavigationControllerDelegate 也有相应的手势交互的协议方法: - (id )navigationController:(UINavigationController *)navigationController interactionControllerForAnimationController:(id ) animationController{ return popInteractive.interacting ? popInteractive : nil; 点击 博客介绍 阅读详细实现细节

免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
温馨提示
请用电脑打开本网页,即可以免费获取你想要的了。
扫描加我微信 ×

演示

×
登录 ×


下载 ×
论文助手网
论文助手,最开放的学术期刊平台
				暂无来源信息			 
回复
来来来,吐槽点啥吧

作者联系方式

×

向作者索要->