Compare commits

...

1 Commits

Author SHA1 Message Date
Cezary Wojcik e7d66aefe3 2.3.4 2016-01-07 23:57:28 -08:00
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CWStatusBarNotification"
s.version = "2.3.3"
s.version = "2.3.4"
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"
@@ -248,7 +248,7 @@ static void cancel_delayed_block(CWDelayedBlockHandle delayedHandle)
if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
return [UIScreen mainScreen].bounds.size.height;
}
return [UIScreen mainScreen].bounds.size.width;
return [[UIApplication sharedApplication] keyWindow].bounds.size.width;
}
- (CGFloat)getStatusBarOffset
@@ -376,7 +376,7 @@ static void cancel_delayed_block(CWDelayedBlockHandle delayedHandle)
- (void)createNotificationWindow
{
self.notificationWindow = [[CWWindowContainer alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.notificationWindow = [[CWWindowContainer alloc] initWithFrame:[[[UIApplication sharedApplication] keyWindow] bounds]];
self.notificationWindow.backgroundColor = [UIColor clearColor];
self.notificationWindow.userInteractionEnabled = YES;
self.notificationWindow.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
+1 -1
View File
@@ -20,7 +20,7 @@ Works for iPhone and iPad.
### CocoaPods
`pod 'CWStatusBarNotification', '~> 2.3.3'`
`pod 'CWStatusBarNotification', '~> 2.3.4'`
### Manual