| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,6 +13,8 @@ import * as utils from "../../utils/utils"; | |||
| 13 | 13 | ||
| 14 | 14 | export * from "./frame-common"; | |
| 15 | 15 | ||
| 16 | + const majorVersion = utils.ios.MajorVersion; | ||
| 17 | + | ||
| 16 | 18 | const ENTRY = "_entry"; | |
| 17 | 19 | const NAV_DEPTH = "_navDepth"; | |
| 18 | 20 | const TRANSITION = "_transition"; | |
@@ -88,6 +90,13 @@ export class Frame extends FrameBase { | |||
| 88 | 90 | backstackEntry[NAV_DEPTH] = navDepth; | |
| 89 | 91 | viewController[ENTRY] = backstackEntry; | |
| 90 | 92 | ||
| 93 | + if (!animated && majorVersion > 10) { | ||
| 94 | + // Reset back button title before pushing view controller to prevent | ||
| 95 | + // displaying default 'back' title (when NavigaitonButton custom title is set). | ||
| 96 | + let barButtonItem = UIBarButtonItem.alloc().initWithTitleStyleTargetAction("", UIBarButtonItemStyle.Plain, null, null); | ||
| 97 | + viewController.navigationItem.backBarButtonItem = barButtonItem; | ||
| 98 | + } | ||
| 99 | + | ||
| 91 | 100 | // First navigation. | |
| 92 | 101 | if (!this._currentEntry) { | |
| 93 | 102 | // Update action-bar with disabled animations before the initial navigation. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments