From f2ed4605a7448fcdd14d83b5815419af0f2b5710 Mon Sep 17 00:00:00 2001 From: QuintGao <1094887059@qq.com> Date: Fri, 14 May 2021 15:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NavigationBar/UIViewController+GKNavigationBar.h | 2 +- .../NavigationBar/UIViewController+GKNavigationBar.m | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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