From b87af9f2884265b30f53c6dd408c5f52a840ff9f Mon Sep 17 00:00:00 2001 From: Cezary Wojcik Date: Tue, 12 May 2015 12:17:28 -0700 Subject: [PATCH] 2.2.6 --- CWStatusBarNotification.podspec | 2 +- CWStatusBarNotification/CWStatusBarNotification.m | 6 ++++++ README.md | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CWStatusBarNotification.podspec b/CWStatusBarNotification.podspec index ee3ab72..137798b 100644 --- a/CWStatusBarNotification.podspec +++ b/CWStatusBarNotification.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CWStatusBarNotification" - s.version = "2.2.5" + s.version = "2.2.6" s.summary = "A library that creates status bar notifications." s.description = "CWStatusBarNotification is a library allows you to present a beautiful text-based notification in the status bar." s.homepage = "https://github.com/cezarywojcik/CWStatusBarNotification" diff --git a/CWStatusBarNotification/CWStatusBarNotification.m b/CWStatusBarNotification/CWStatusBarNotification.m index 3d2bcdd..3e80969 100644 --- a/CWStatusBarNotification/CWStatusBarNotification.m +++ b/CWStatusBarNotification/CWStatusBarNotification.m @@ -61,6 +61,12 @@ - (NSInteger)supportedInterfaceOrientations return self._cwViewControllerSupportedInterfaceOrientation; } +- (BOOL)prefersStatusBarHidden +{ + CGFloat statusBarHeight = [[UIApplication sharedApplication] statusBarFrame].size.height; + return !(statusBarHeight > 0); +} + @end # pragma mark - dispatch after with cancellation diff --git a/README.md b/README.md index 86d70e1..f52c075 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Works for iPhone and iPad. ### CocoaPods -`pod 'CWStatusBarNotification', '~> 2.2.5'` +`pod 'CWStatusBarNotification', '~> 2.2.6'` ### Manual