Skip to content

Commit

Permalink
修复某些属性无效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintGao committed May 14, 2021
1 parent e5e3dbc commit f2ed460
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN

/// 是否创建了gk_navigationBar
/// 返回YES表明当前控制器使用了自定义的gk_navigationBar,默认为NO
@property (nonatomic, assign, readonly) BOOL gk_NavBarInit;
@property (nonatomic, assign, readonly) BOOL gk_NavBarInit;

/// 设置状态栏是否隐藏,默认NO:不隐藏
@property (nonatomic, assign) BOOL gk_statusBarHidden;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,10 @@ - (void)setBackItemImage:(UIImage *)image {
if (self.gk_backStyle != GKNavigationBarBackStyleNone) {
image = (self.gk_backStyle == GKNavigationBarBackStyleBlack) ? self.gk_blackBackImage : self.gk_whiteBackImage;
}
}else {
if (self.gk_backStyle == GKNavigationBarBackStyleNone) {
image = nil;
}
}

// 没有image
Expand Down

0 comments on commit f2ed460

Please sign in to comment.