Skip to content

Commit

Permalink
2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarywojcik committed Jan 8, 2016
1 parent 7eb79da commit e7d66ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CWStatusBarNotification.podspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions CWStatusBarNotification/CWStatusBarNotification.m
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ - (CGFloat)getStatusBarWidth
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
Expand Down Expand Up @@ -376,7 +376,7 @@ - (void)createNotificationCustomView:(UIView *)view

- (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;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Works for iPhone and iPad.

### CocoaPods

`pod 'CWStatusBarNotification', '~> 2.3.3'`
`pod 'CWStatusBarNotification', '~> 2.3.4'`

### Manual

Expand Down

0 comments on commit e7d66ae

Please sign in to comment.