本文主要是介绍推送的时候的过渡动画一些枚举,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
RegisterController *reg = [[RegisterController alloc]init];UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:reg];//推动动画[nav setModalTransitionStyle:UIModalTransitionStyleCoverVertical];[self presentViewController:nav animated:YES completion:nil];
其中:
[nav setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
设定推送时候的动画:(一个枚举类型)
typedef NS_ENUM(NSInteger, UIModalTransitionStyle) {UIModalTransitionStyleCoverVertical = 0,UIModalTransitionStyleFlipHorizontal,UIModalTransitionStyleCrossDissolve,UIModalTransitionStylePartialCurl NS_ENUM_AVAILABLE_IOS(3_2),
};
UIModalTransitionStyleCoverVertical = 0,
从中间旋转
UIModalTransitionStyleFlipHorizontal,
渐变
UIModalTransitionStyleCrossDissolve
翻书(从下往上)
UIModalTransitionStylePartialCurl NS_ENUM_AVAILABLE_IOS(3_2),
这篇关于推送的时候的过渡动画一些枚举的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!