Skip to content

Commit

Permalink
修复visibleViewController方法返回错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintGao committed Sep 9, 2021
1 parent b919d27 commit 721577f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GKNavigationBar.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'GKNavigationBar'
s.version = '1.5.9'
s.version = '1.6.0'
s.license = 'MIT'
s.summary = '自定义导航栏--导航栏联动'
s.homepage = 'https://github.com/QuintGao/GKNavigationBar'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ - (UIViewController *)gk_findCurrentViewControllerIsRoot:(BOOL)isRoot {
return [[(UITabBarController *)self selectedViewController] gk_findCurrentViewControllerIsRoot:NO];;
}
if ([self isKindOfClass:[UINavigationController class]]) {
[[(UINavigationController *)self topViewController] gk_findCurrentViewControllerIsRoot:NO];
return [[(UINavigationController *)self topViewController] gk_findCurrentViewControllerIsRoot:NO];
}
if (self.childViewControllers.count > 0) {
if (self.childViewControllers.count == 1 && isRoot) {
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ configure.shiledGuestureVCs = @[NSClassFromString(@"TZPhotoPickerController"), @
<summary><font size=4>最近更新</font></summary>

```
1.6.0 - 2021.09.09 修复visibleViewController方法返回错误问题
1.5.9 - 2021.06.25 配置类增加backgroundImage,可设置全局导航图片
1.5.8 - 2021.06.09 增加恢复系统导航栏显示的逻辑及方法 #86
1.5.7 - 2021.05.20 修复bug #78,创建导航栏item方法优化
Expand Down

0 comments on commit 721577f

Please sign in to comment.