Latest 1.0.1
Homepage https://github.com/Dzamir/DZAOldStyleNavigationControllerAnimatedTransition
License MIT
Platforms ios 7.0, requires ARC
Authors

This class implements the UIViewControllerAnimatedTransitioning protocol and it lets you use the old style push and pop animation (before iOS7) in which the two views scrolls together. Useful for UINavigationController with a transparent background in which the views overlaps with the iOS7 animation style.

How to use:

Import the library:

@import DZAOldStyleNavigationControllerAnimatedTransition;

Set your viewcontroller as UINavigationController delegate:

ObjC:

self.navigationController.delegate = self;

Swift:

self.navigationController?.delegate = self

And Implement this method:

ObjC:

-(id<UIViewControllerAnimatedTransitioning>)navigationController:
(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation fromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC
{
    DZAOldStyleNavigationControllerAnimatedTransition * animation = [[OldStyleNavigationControllerAnimatedTransition alloc] init];
    animation.operation = operation;
    return animation;
}

Swift:

override func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationControllerOperation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning?
{
    let animation = DZAOldStyleNavigationControllerAnimatedTransition()
    animation.operation = operation
    return animation
}

Latest podspec

{
    "name": "DZAOldStyleNavigationControllerAnimatedTransition",
    "version": "1.0.1",
    "summary": "Old style push and pop animation in which the two views scrolls together",
    "description": "This class implements the UIViewControllerAnimatedTransitioning protocol and it lets you use the old style push and pop animation (before iOS7) in which the two views scrolls together. Useful for UINavigationController with a transparent background in which the views overlaps with the iOS7 animation style.",
    "homepage": "https://github.com/Dzamir/DZAOldStyleNavigationControllerAnimatedTransition",
    "license": "MIT",
    "authors": {
        "Davide Di Stefano": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Dzamir/DZAOldStyleNavigationControllerAnimatedTransition.git",
        "tag": "1.0.1"
    },
    "social_media_url": "https://twitter.com/dzamir",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "DZAOldStyleNavigationControllerAnimatedTransition/**/*"
}

Pin It on Pinterest

Share This