diff --git a/RMessage.podspec b/RMessage.podspec index 7712fad..e7af30f 100644 --- a/RMessage.podspec +++ b/RMessage.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.name = "RMessage" - s.version = "2.2.0" + s.version = "2.2.1" s.summary = "Easy to use and customizable messages/notifications for iOS" s.description = <<-DESC This framework provides an easy to use class to show little notification views on the top of the screen. diff --git a/RMessage/RMessageView.m b/RMessage/RMessageView.m index ae3c2f9..04c9a60 100644 --- a/RMessage/RMessageView.m +++ b/RMessage/RMessageView.m @@ -986,7 +986,7 @@ - (void)present - (void)layoutMessageForPresentation { _titleSubtitleContainerViewTopConstraint.constant = 10.f; - CGFloat statusBarHeight = statusBarHeight = [self.viewController prefersStatusBarHidden] ? 0.f : ([UIApplication sharedApplication].statusBarFrame.size.height / 2.f); + CGFloat statusBarHeight = statusBarHeight = [self.viewController prefersStatusBarHidden] ? 0.f : ([UIApplication sharedApplication].statusBarFrame.size.height); UINavigationController *messageNavigationController = [self rootNavigationController];