文章来源:淘论文网   发布者: 毕业设计   浏览量: 20



还可以点击去查询以下关键词:
[过渡]    [效果]    [定制]    [RZTransitions]    [iOS过渡效果渲定制染 - RZTransitions]   

项目介绍:

特点:

动画控制器的综合库
交互控制器的综合库
将任何动画控制器和交互控制器混合并匹配
作为一个共享实例管理器帮助把iOS7自定义过渡协议包装为一个友好的API

安装

CocoaPods

将如下代码加入到你的Podfile:

pod 'RZTransitions'

手动安装
将所有 RZTransitions 目录下的文件复制到你的项目中
设置一个新的默认过渡

Swift

RZTransitionsManager.shared().defaultPresentDismissAnimationController = RZZoomAlphaAnimationController() RZTransitionsManager.shared().defaultPushPopAnimationController = RZCardSlideAnimationController()

ObjectiveC

id<RZAnimationControllerProtocol> presentDismissAnimationController = [[RZZoomAlphaAnimationController alloc] init]; id<RZAnimationControllerProtocol> pushPopAnimationController = [[RZCardSlideAnimationController alloc] init]; [[RZTransitionsManager shared] setDefaultPresentDismissAnimationController:presentDismissAnimationController]; [[RZTransitionsManager shared] setDefaultPushPopAnimationController:pushPopAnimationController];

Swift

self.transitioningDelegate = RZTransitionsManager.shared() let nextViewController = UIViewController() nextViewController.transitioningDelegate = RZTransitionsManager.shared() self.presentViewController(nextViewController, animated:true) {}

ObjectiveC

[self setTransitioningDelegate:[RZTransitionsManager shared]]; UIViewController *nextViewController = [[UIViewController alloc] init]; [nextViewController setTransitioningDelegate:[RZTransitionsManager shared]]; [self presentViewController:nextViewController animated:YES completion:nil];

Swift

let navigationController = UINavigationController() navigationController.delegate = RZTransitionsManager.shared() Objective C UINavigationController *navigationController = [[UINavigationController alloc] init]; [navigationController setDelegate:[RZTransitionsManager shared]];

指定特定控制器的转换
Swift

RZTransitionsManager.shared().setAnimationController( RZZoomPushAnimationController(), fromViewController:self.dynamicType, toViewController:RZSimpleCollectionViewController.self, forAction:.PushPop) ObjectiveC // Use the RZZoomPushAnimationController when pushing from this view controller to a // RZSimpleCollectionViewController or popping from a RZSimpleCollectionViewController to // this view controller. [[RZTransitionsManager shared] setAnimationController:[[RZZoomPushAnimationController alloc] init] fromViewController:[self class] toViewController:[RZSimpleCollectionViewController class] forAction:RZTransitionAction_PushPop];

https://github.com/Raizlabs/RZTransitions

论文开题报告

这里还有:


还可以点击去查询:
[过渡]    [效果]    [定制]    [RZTransitions]    [iOS过渡效果渲定制染 - RZTransitions]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/7743.docx
  • 上一篇:微信小程序:音乐播放定制器 技术栈: redux + es7 +labrador
  • 下一篇:iOS定位及航向功能 - LocationManager