Skip to content

Commit

Permalink
Merge pull request #190 from nicked/patch-1
Browse files Browse the repository at this point in the history
Fixed an iOS 8 version check
  • Loading branch information
KrauseFx committed Nov 6, 2014
2 parents c56ab1f + 06bc3eb commit 988e590
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Pod/Classes/TSMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,7 @@ - (void)fadeInCurrentNotification
}

CGSize statusBarSize = [UIApplication sharedApplication].statusBarFrame.size;

if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerForRemoteNotifications)]) {
verticalOffset += statusBarSize.height;
} else {
BOOL isPortrait = UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]);
CGFloat offset = isPortrait ? statusBarSize.height : statusBarSize.width;
verticalOffset += offset;
}
verticalOffset += MIN(statusBarSize.width, statusBarSize.height);
};

if ([currentView.viewController isKindOfClass:[UINavigationController class]] || [currentView.viewController.parentViewController isKindOfClass:[UINavigationController class]])
Expand Down

0 comments on commit 988e590

Please sign in to comment.