Compare commits

...

6 Commits

Author SHA1 Message Date
Cezary Wojcik 195e99c68d 2.3.5 2016-09-08 01:24:39 -07:00
Cezary Wojcik 029ba7943c Merge pull request #91 from zhonghuiwen/master
Fixed Xcode 8 beta 2 error: preferredStatusBarStyle
2016-07-23 20:34:50 -07:00
Zhong Huiwen 9c1d49b094 Fixed Xcode 8 beta 2 error: preferredStatusBarStyle
https://github.com/cezarywojcik/CWStatusBarNotification/issues/90
2016-07-24 03:45:56 +08:00
Cezary Wojcik 477c95fb94 Merge pull request #86 from RolandasRazma/missing-UIKit-import
missing UIKit import
2016-06-21 00:23:10 -07:00
Rolandas Razma 4e12eb580f missing UIKit import 2016-06-20 11:44:08 +01:00
Cezary Wojcik e7d66aefe3 2.3.4 2016-01-07 23:57:28 -08:00
4 changed files with 8 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.5"
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"
@@ -6,6 +6,8 @@
// Copyright (c) 2015 Cezary Wojcik. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
* @brief A simple completion used for handling tapping the notification.
*/
@@ -106,6 +106,8 @@
@implementation CWViewController
@synthesize preferredStatusBarStyle = _preferredStatusBarStyle;
- (UIStatusBarStyle)preferredStatusBarStyle
{
return _preferredStatusBarStyle;
@@ -248,7 +250,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 +378,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.5'`
### Manual