瀏覽代碼

Hide the large title

master
mac-user669 4 年之前
父節點
當前提交
4943957ea3
共有 1 個檔案被更改,包括 22 行新增0 行删除
  1. +22
    -0
      zenithdarkprefs/ZNDarkPrefsRootListController.m

+ 22
- 0
zenithdarkprefs/ZNDarkPrefsRootListController.m 查看文件

@@ -22,6 +22,28 @@
}


// Hide Large Title
- (void)viewDidLoad {
[super viewDidLoad];

if (@available(iOS 11, *)) {
self.navigationController.navigationBar.prefersLargeTitles = false;
self.navigationController.navigationItem.largeTitleDisplayMode =
UINavigationItemLargeTitleDisplayModeNever;
}
}

- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];

if (@available(iOS 11, *)) {
self.navigationController.navigationBar.prefersLargeTitles = false;
self.navigationController.navigationItem.largeTitleDisplayMode =
UINavigationItemLargeTitleDisplayModeNever;
}
}
// End of "Hide Large Title"

//share button action
- (void)shareTapped {

Loading…
取消
儲存