From 96c7384f8fd4e01c13b6c6e918d8fe08b7e7e822 Mon Sep 17 00:00:00 2001 From: Benzamin Basher Date: Mon, 17 Apr 2017 11:44:31 +0600 Subject: [PATCH 1/2] Fixed a bug, The TabBar was not shown in the navigation controller in iOS 10. --- Source/Utilities/MSSCustomHeightNavigationBar.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 Source/Utilities/MSSCustomHeightNavigationBar.m diff --git a/Source/Utilities/MSSCustomHeightNavigationBar.m b/Source/Utilities/MSSCustomHeightNavigationBar.m old mode 100644 new mode 100755 index 88975c0..94d7f17 --- a/Source/Utilities/MSSCustomHeightNavigationBar.m +++ b/Source/Utilities/MSSCustomHeightNavigationBar.m @@ -10,6 +10,8 @@ CGFloat const MSSStandardBarHeightInvalid = -1.0f; +#define MSS_SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) + @interface MSSCustomHeightNavigationBar () @property (nonatomic, assign) CGFloat standardBarHeight; @@ -43,8 +45,7 @@ - (void)baseInit { - (void)layoutSubviews { [super layoutSubviews]; - NSArray *classNamesToReposition = @[@"_UINavigationBarBackground"]; - + NSArray *classNamesToReposition = MSS_SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"10.0") ? @[@"_UIBarBackground"] : @[@"_UINavigationBarBackground"]; for (UIView *view in [self subviews]) { if ([classNamesToReposition containsObject:NSStringFromClass([view class])]) { From 7d15b10ec9fea1495c09bdb58454e9caf01b3dcc Mon Sep 17 00:00:00 2001 From: Merrick Sapsford Date: Mon, 24 Apr 2017 21:11:37 +0100 Subject: [PATCH 2/2] Update version --- MSSTabbedPageViewController.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MSSTabbedPageViewController.podspec b/MSSTabbedPageViewController.podspec index 587c6c8..79c96b0 100644 --- a/MSSTabbedPageViewController.podspec +++ b/MSSTabbedPageViewController.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MSSTabbedPageViewController" - s.version = "0.3.10" + s.version = "0.3.11" s.summary = "A custom container UIViewController which provides a simple to implement page view controller with scrolling tab bar" s.description = <<-DESC