Iossharedviewtransition
IOS 7 based Transition library for View Controllers have a Common View
A library of IOS7-based transforms view that allows the views controller to share a common view.
- Inspired by Gkfx View Activity transitions introduced in Android L. inspired by Android L
USAGE
Very Simple 3 Step Process:
Very simple, 3 steps to get it done:
- Download and include and in
ASFSharedViewTransition.h
ASFSharedViewTransition.m
your Project. Download the project and copy the ASFSharedViewTransition.h/. m file into your project
- In your app delegate or somewhere else in code does and
#import "ASFSharedViewTransition.h"
add tansitions like this: in your appdelegate method or elsewhere, introduce the header file ASF SharedViewTransition.h, as shown below
[ASFSharedViewTransition addTransitionWithFromViewControllerClass:[ViewController class] ToViewControllerClass:[DetailViewController class] WithNavigationController:(UINavigationController *)self.window.rootViewController WithDuration:0.3f];
Note: Transition needs to being added only one time and asfsharedviewtransition would automatically apply transitions whenever speci Fied Uinavigationcontroller navigates between any fromviewcontroller and Toviewcontroller instances.
Note: The effect of the conversion only needs to be loaded once. After that, Asfsharedviewtransition will function between any uinavigationcontroller and Fromviewcontroller.
- Confirm from & to view Controllers
ASFSharedViewTransitionDataSource
to and provide the Common view by implementing this method: Make sure the original controller and the control to be converted The Protocol method Asfsharedviewtransitiondatasource is implemented by the device.
- (UIView *)sharedView
Thats it! A Sample Demo application have been included for help.
Just Jiangzi! You can check out the demo.
Installation
Iossharedviewtransition is available through CocoaPods. To install it, simply add the following line to your podfile:
You can install with Cocoapods:
Pod ' iossharedviewtransition ', ' ~> 1.0.2 '
Coming Soon
- Adding more transitions to the library add more conversion effects
- If you would like to request a new feature, feel free to raise as an issue. If you have any good suggestions, tell me as soon as possible .
Author
Asif Mujteba, [email protected]
License
Asfsharedviewtransition is available under the MIT license. See the LICENSE file for more info.
[Translate] Iossharedviewtransition