GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Dzamir/DZAOldStyleNavigationControllerAnimatedTransition: Old style (before iOS7) push and pop animation for UINavigationController

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
DZAOldStyleNavigationControllerAnimatedTransition
DZAOldStyleNavigationControllerAnimatedTransition
 
 
DZAOldStyleNavigationControllerAnimatedTransition.podspec
DZAOldStyleNavigationControllerAnimatedTransition.podspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

DZAOldStyleNavigationControllerAnimatedTransition

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
}

About

Old style (before iOS7) push and pop animation for UINavigationController

Resources

Readme
MIT license
Activity

Stars

31 stars

Watchers

3 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.