From c4ee702903471120259ea916c557c52baee49f3c Mon Sep 17 00:00:00 2001 From: Hugues Bernet-Rollande Date: Fri, 13 Nov 2015 18:21:40 +0100 Subject: [PATCH] TSMessage: account for eventual tabBar Shift TSMessage up when display at bottom position (TSMessageNotificationPositionBottom) and navBar present --- Pod/Classes/TSMessage.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Pod/Classes/TSMessage.m b/Pod/Classes/TSMessage.m index 02deac66..2df86d4b 100755 --- a/Pod/Classes/TSMessage.m +++ b/Pod/Classes/TSMessage.m @@ -254,6 +254,10 @@ - (void)fadeInCurrentNotification else { CGFloat y = currentView.viewController.view.bounds.size.height - CGRectGetHeight(currentView.frame) / 2.0; + if (!currentView.viewController.tabBarController.tabBar.hidden) + { + y -= CGRectGetHeight(currentView.viewController.tabBarController.tabBar.bounds); + } if (!currentView.viewController.navigationController.isToolbarHidden) { y -= CGRectGetHeight(currentView.viewController.navigationController.toolbar.bounds);