Skip to content

Commit

Permalink
[feature] bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
indulgeIn committed Jun 19, 2019
1 parent c273dd2 commit 049a13d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion YBImageBrowser.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Pod::Spec.new do |s|


s.name = "YBImageBrowser"
s.version = "2.2.2"
s.version = "2.2.3"
s.summary = "image browser for iOS (powerful, superior performance)"
s.description = <<-DESC
image browser for iOS (powerful, superior performance),
Expand Down
4 changes: 2 additions & 2 deletions YBImageBrowser/Helper/YBIBUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
top = window.rootViewController;
}

while ([top isKindOfClass:UITabBarController.class] || [top isKindOfClass:UINavigationController.class]) {
if ([top isKindOfClass:UITabBarController.class] || top.presentedViewController) {
while ([top isKindOfClass:UITabBarController.class] || [top isKindOfClass:UINavigationController.class] || top.presentedViewController) {
if ([top isKindOfClass:UITabBarController.class]) {
top = ((UITabBarController *)top).selectedViewController;
} else if ([top isKindOfClass:UINavigationController.class]) {
top = ((UINavigationController *)top).topViewController;
Expand Down
1 change: 0 additions & 1 deletion YBImageBrowser/ImageBrowse/YBImageBrowseCellData.m
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ - (void)loadThumbImage {
} else if (data) {
self.thumbImage = [UIImage imageWithData:data];
}

// If the target image is ready, ignore the thumb image.
if (self.dataState != YBImageBrowseCellDataStateCompressImageReady && self.dataState != YBImageBrowseCellDataStateImageReady) {
self.dataState = YBImageBrowseCellDataStateThumbImageReady;
Expand Down

0 comments on commit 049a13d

Please sign in to comment.