We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d53a1ab + 389c4aa commit 0b452b0Copy full SHA for 0b452b0
TSMessages/Classes/TSMessage.m
@@ -195,8 +195,11 @@ - (void)fadeInCurrentNotification
195
}
196
else
197
{
198
- toPoint = CGPointMake(currentView.center.x,
199
- currentView.viewController.view.bounds.size.height - CGRectGetHeight(currentView.frame) / 2.0);
+ CGFloat y = currentView.viewController.view.bounds.size.height - CGRectGetHeight(currentView.frame) / 2.0;
+ if (!currentView.viewController.navigationController.isToolbarHidden) {
200
+ y -= CGRectGetHeight(currentView.viewController.navigationController.toolbar.bounds);
201
+ }
202
+ toPoint = CGPointMake(currentView.center.x, y);
203
204
205
dispatch_block_t animationBlock = ^{
0 commit comments