iOS转场动画初探
发布时间:2015-12-23 15:00:19
一般我们就用两种转场push和presentpresent/** 1.设置代理 - (instancetype)init { self = [super init]; if (self) { self.transitioningDelegate = self; self.moda ...
一般我们就用两种转场push和present
present
/** 1.设置代理 - (instancetype)init { self = [super init]; if (self) { self.transitioningDelegate = self; self.modalPresentationStyle = UIModalPresentationCustom; } return self; } 2.添加协议<UIViewControllerTransitioningDelegate> 3.重写协议方法 - 在协议方法里面初始化 - (id<UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source{ } - (id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed{ } **/
原标题:iOS转场动画初探
关键词:IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。