Skip to content
This repository was archived by the owner on Nov 8, 2017. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Source/Utilities/MSSCustomHeightNavigationBar.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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])]) {
Expand Down