[翻译] iOSSharedViewTransition
2015-06-21 22:08
453 查看
iOSSharedViewTransition
iOS 7 based transition library for View Controllers having a Common View
基于iOS7的变换view用的库,让视图控制器共享一个共有的view.
Inspired by Shared View Activity Transitions introduced in Android L. 灵感来自于Android L
USAGE
Very Simple 3 Step Process:
非常简单,3步搞定:
Download and include
In your app delegate or somewhere else in code do
Note: Transition needs to be added only one time and ASFSharedViewTransition will automatically apply transitions whenever specified UINavigationController navigates between any FromViewController and ToViewController instances.
注意:转换的效果只需要被加载一次.之后,ASFSharedViewTransition就会作用在任何UINavigationController与FromViewController之间.
Confirm From & To View Controllers to
Thats it! A Sample Demo Application has been included for help.
就酱紫!你可以查看下demo看看.
Installation
iOSSharedViewTransition is available through CocoaPods. To install it, simply add the following line to your Podfile:
你可以用CocoaPods安装:
pod 'iOSSharedViewTransition', '~> 1.0.2'
Coming Soon
Adding more transitions to the library 添加更多的转换效果
If you would like to request a new feature, feel free to raise as an issue. 如果你有什么好的提议,尽快告诉我
Author
Asif Mujteba, asifmujteba@gmail.com
License
ASFSharedViewTransition is available under the MIT license. See the LICENSE file for more info.
iOS 7 based transition library for View Controllers having a Common View
基于iOS7的变换view用的库,让视图控制器共享一个共有的view.
Inspired by Shared View Activity Transitions introduced in Android L. 灵感来自于Android L
USAGE
Very Simple 3 Step Process:
非常简单,3步搞定:
Download and include
ASFSharedViewTransition.hand
ASFSharedViewTransition.min your Project. 下载项目,然后将ASFSharedViewTransition.h / .m文件拷贝到你的项目当中
In your app delegate or somewhere else in code do
#import "ASFSharedViewTransition.h"and add tansitions like this: 在你的appdelegate方法或者是其他地方,引入头文件ASFSharedViewTransition.h,如下所示
[ASFSharedViewTransition addTransitionWithFromViewControllerClass:[ViewController class] ToViewControllerClass:[DetailViewController class] WithNavigationController:(UINavigationController *)self.window.rootViewController WithDuration:0.3f];
Note: Transition needs to be added only one time and ASFSharedViewTransition will automatically apply transitions whenever specified UINavigationController navigates between any FromViewController and ToViewController instances.
注意:转换的效果只需要被加载一次.之后,ASFSharedViewTransition就会作用在任何UINavigationController与FromViewController之间.
Confirm From & To View Controllers to
ASFSharedViewTransitionDataSourceand provide the Common View by implementing this method: 要确保原控制器与待转换控制器实现了协议方法ASFSharedViewTransitionDataSource.
- (UIView *)sharedView
Thats it! A Sample Demo Application has been included for help.
就酱紫!你可以查看下demo看看.
Installation
iOSSharedViewTransition is available through CocoaPods. To install it, simply add the following line to your Podfile:
你可以用CocoaPods安装:
pod 'iOSSharedViewTransition', '~> 1.0.2'
Coming Soon
Adding more transitions to the library 添加更多的转换效果
If you would like to request a new feature, feel free to raise as an issue. 如果你有什么好的提议,尽快告诉我
Author
Asif Mujteba, asifmujteba@gmail.com
License
ASFSharedViewTransition is available under the MIT license. See the LICENSE file for more info.
相关文章推荐
- ios开发-多线程GCD之详解
- ViewController 的 loadView, viewDidLoad, viewDidUnload 分别是在什么时候调用的?
- iOS-Block的简单使用
- iOS阶段学习第四天笔记(循环)
- iOS笔记052- Quartz2D-绘图
- iOS多线程的初步研究(八)-- dispatch队列
- iOS中block深入原理研究
- iOS学习009
- IOS 分享学习笔记
- ios关于点击事件selector传参的问题,看似简单却容易混淆(已解决)
- iOS开发之AVAudioPlayer 音频播放
- iOS GCD的常见API使用指南
- iOS-Reachability的使用
- iOS 各种控件默认高度
- iOS阶段学习第三天笔记(运算符)
- IOS使用百度地图SDK,报引擎初始化失败
- iOS图片拉伸技巧
- Xamarin 绑定iOS 静态库
- ios开发,将图片存到相册中
- iOS手机应用开发原型模板及开发流程