Skip to content
プロジェクト

palmin/ios-multi-back-button

GitHubで見る

概要

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

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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

関連プロジェクトを探す

読み込み中…