Skip to content
This repository was archived by the owner on Nov 8, 2017. It is now read-only.

Commit 053b2ea

Browse files
committed
Merge branch 'release/0.3.11'
2 parents e93fd8d + 7d15b10 commit 053b2ea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

MSSTabbedPageViewController.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "MSSTabbedPageViewController"
4-
s.version = "0.3.10"
4+
s.version = "0.3.11"
55
s.summary = "A custom container UIViewController which provides a simple to implement page view controller with scrolling tab bar"
66

77
s.description = <<-DESC

Source/Utilities/MSSCustomHeightNavigationBar.m

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
CGFloat const MSSStandardBarHeightInvalid = -1.0f;
1212

13+
#define MSS_SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
14+
1315
@interface MSSCustomHeightNavigationBar ()
1416

1517
@property (nonatomic, assign) CGFloat standardBarHeight;
@@ -43,8 +45,7 @@ - (void)baseInit {
4345
- (void)layoutSubviews {
4446
[super layoutSubviews];
4547

46-
NSArray *classNamesToReposition = @[@"_UINavigationBarBackground"];
47-
48+
NSArray *classNamesToReposition = MSS_SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"10.0") ? @[@"_UIBarBackground"] : @[@"_UINavigationBarBackground"];
4849
for (UIView *view in [self subviews]) {
4950

5051
if ([classNamesToReposition containsObject:NSStringFromClass([view class])]) {

0 commit comments

Comments
 (0)