[Translate] Iossharedviewtransition

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.