Coder Social home page Coder Social logo

ios-multi-back-button's Introduction

ios-multi-back-button

Replacement for the built-in UINavigationController back-button that allows going back multiple levels. It requires iOS 8 as it uses popover presentation of view-controllers on iPhone.

Users long-tap the back-button to display a table with the viewControllers in the current navigation stack. They either lift the finger and tap a table-cell or move it above the table and release above the cell for the view-controller you want to navigate to. If they do a regular tap, the back-button will bring you back a single level as usual.

You configure a view-controller to use there buttons with some link like

#import "AB_MultiBackButtonItem.h"
 ⋮
- (void)viewDidLoad {
    [super viewDidLoad];

    [self configureMultiBackButton];
    self.multiBackButtonImage = [UIImage imageNamed: @"myImage"];
}

You just need to include AB_MultiBackButtonItem.h and AB_MultiBackButtonItem.m in your project and #import "AB_MultiBackButtonItem.h".

Because I have no reliable way to determine how much space is available in the navigation bar, the back-button never shows the title of the previous view controller. I would much rather it included a title if there was sufficient space for this and you can find some traces of attempts at this. Suggestions on how to do it are very welcome.

You can reach me as @palmin on Twitter

ios-multi-back-button's People

Contributors

palmin avatar jeffreyjackson avatar

Watchers

James Cloos avatar skyat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.