From 8b0884b27835c4ad9bdfdbc19f564569b1eda8da Mon Sep 17 00:00:00 2001 From: Cezary Wojcik Date: Fri, 19 Sep 2014 10:34:28 -0700 Subject: [PATCH] 2.1.3 --- CWNotificationDemo/LaunchScreen.xib | 6 +++--- CWStatusBarNotification.podspec | 4 ++-- CWStatusBarNotification/CWStatusBarNotification.m | 6 ++++-- README.md | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CWNotificationDemo/LaunchScreen.xib b/CWNotificationDemo/LaunchScreen.xib index 64aca8c..31964af 100644 --- a/CWNotificationDemo/LaunchScreen.xib +++ b/CWNotificationDemo/LaunchScreen.xib @@ -1,7 +1,7 @@ - + @@ -12,8 +12,8 @@ diff --git a/CWStatusBarNotification.podspec b/CWStatusBarNotification.podspec index a296148..0936209 100644 --- a/CWStatusBarNotification.podspec +++ b/CWStatusBarNotification.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = "CWStatusBarNotification" - s.version = "2.1.2" + s.version = "2.1.3" 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 = "http://github.com/cezarywojcik/CWStatusBarNotification" + s.homepage = "https://github.com/cezarywojcik/CWStatusBarNotification" s.screenshots = "https://raw.github.com/cezarywojcik/CWStatusBarNotification/master/screenshots/screenshot.png" s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { "Cezary Wojcik" => "me@cezarywojcik.com" } diff --git a/CWStatusBarNotification/CWStatusBarNotification.m b/CWStatusBarNotification/CWStatusBarNotification.m index 18d1255..d9a73e4 100644 --- a/CWStatusBarNotification/CWStatusBarNotification.m +++ b/CWStatusBarNotification/CWStatusBarNotification.m @@ -22,10 +22,12 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { CGFloat height; - if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) + if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) { height = [UIApplication sharedApplication].statusBarFrame.size.width; - else + } + else { height = [UIApplication sharedApplication].statusBarFrame.size.height; + } if (point.y > 0 && point.y < height) { return [super hitTest:point withEvent:event]; diff --git a/README.md b/README.md index 735af50..a20958a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Works for iPhone and iPad. ### CocoaPods -`pod 'CWStatusBarNotification', '~> 2.1.2'` +`pod 'CWStatusBarNotification', '~> 2.1.3'` ### Manual