diff --git a/GKNavigationBar/NavigationBar/UIViewController+GKNavigationBar.h b/GKNavigationBar/NavigationBar/UIViewController+GKNavigationBar.h index 6fedecd..1cc33ae 100644 --- a/GKNavigationBar/NavigationBar/UIViewController+GKNavigationBar.h +++ b/GKNavigationBar/NavigationBar/UIViewController+GKNavigationBar.h @@ -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; diff --git a/GKNavigationBar/NavigationBar/UIViewController+GKNavigationBar.m b/GKNavigationBar/NavigationBar/UIViewController+GKNavigationBar.m index 92ef5d6..f549b1b 100644 --- a/GKNavigationBar/NavigationBar/UIViewController+GKNavigationBar.m +++ b/GKNavigationBar/NavigationBar/UIViewController+GKNavigationBar.m @@ -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