Skip to content

Commit

Permalink
Fix message offset for nested controllers
Browse files Browse the repository at this point in the history
This fixes the message offset when building with iOS 6 SDK and using nested controllers, e.g. a `UISplitViewController` and displaying the message on one of its children.
  • Loading branch information
koraktor committed Jan 17, 2014
1 parent 14e56e4 commit 26bf5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TSMessages/Classes/TSMessage.m
Expand Up @@ -172,7 +172,7 @@ - (void)fadeInCurrentNotification
currentNavigationController = (UINavigationController *)currentView.viewController.parentViewController;

BOOL isViewIsUnderStatusBar = [[[currentNavigationController childViewControllers] firstObject] wantsFullScreenLayout];
if (!isViewIsUnderStatusBar) {
if (!isViewIsUnderStatusBar && currentNavigationController.parentViewController == nil) {
isViewIsUnderStatusBar = ![currentNavigationController isNavigationBarHidden]; // strange but true
}
if (![currentNavigationController isNavigationBarHidden])
Expand Down

0 comments on commit 26bf5b0

Please sign in to comment.