Skip to content
프로젝트

palmin/ios-multi-back-button

GitHub에서 보기

소개

back-button replacement for iOS 8 that allows going back multiple levels

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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 something 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

관련 프로젝트 살펴보기

불러오는 중…