iOS: implements navbar set center

This commit is contained in:
王劲鹏
2020-04-30 16:37:06 +08:00
committed by osborn
parent 007786f4ef
commit 2e9459f80f
3 changed files with 38 additions and 0 deletions

View File

@@ -134,6 +134,10 @@ - (void)doric_navBar_setRight:(UIView *)view {
self.navigationItem.rightBarButtonItem = custom;
}
- (void)doric_navBar_setCenter:(UIView *)view {
self.navigationItem.titleView = view;
}
- (BOOL)statusBarHidden {
return _statusBarHidden;
}