Skip to content

Adds a dropdown breadcrumb-style history to a standard UIBarButtonItem back button.

Notifications You must be signed in to change notification settings

joenot443/JCBreadcrumbBackButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JCBreadCrumbBackButton

An easy way to replace the standard Back UIBarButton with a breadcrumb-style history view.

Built by Joe Crozier - www.joecrozier.ca

Installation

Dead-simple. Just clone the repo and include the contents of /JCBreadCrumb.

On any navigation-based view controller, simply add the lines -

        JCBreadCrumbBarButtonItem *breadCrumbBarButton = [[JCBreadCrumbBarButtonItem alloc] initBreadCrumbBarButtonItem];
        breadCrumbBarButton.parentController = self;
        self.navigationItem.hidesBackButton = YES;
        self.navigationItem.leftBarButtonItems = @[breadCrumbBarButton];   

JCBreadCrumbBackButton uses a custom sprite for the back button, as Apple doesn't allow access to the default back button. Just grab the BackButton asset from Assets.xcassets, or use your own.

Usage

Long-press will bring up the breadcrumb menu. It will auto-size the width to that of the widest title in the view controller stack.

Short-press functions as usual, popping off the current view controller from the stack.

TO-DO

  • Add to CocoaPods
  • Allow for custom frame for breadcrumb menu
  • Add stylization options
  • Better gif.

About

Adds a dropdown breadcrumb-style history to a standard UIBarButtonItem back button.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published