Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 36e5ea38b6 | |||
| c6fcfa1d2a | |||
| 70e603a058 | |||
| e488b4c76b | |||
| f1d9606940 | |||
| 93750ca9a2 |
@@ -1,8 +1,6 @@
|
||||
source 'https://github.com/CocoaPods/Specs.git'
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "CWStatusBarNotification"
|
||||
s.version = "2.2.1"
|
||||
s.version = "2.2.2"
|
||||
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"
|
||||
|
||||
@@ -15,6 +15,9 @@ typedef void(^CWCompletionBlock)(void);
|
||||
@end
|
||||
|
||||
@interface CWWindowContainer : UIWindow
|
||||
|
||||
@property (assign, nonatomic) CGFloat notificationHeight;
|
||||
|
||||
@end
|
||||
|
||||
@interface CWStatusBarNotification : NSObject
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
height = [UIApplication sharedApplication].statusBarFrame.size.height;
|
||||
}
|
||||
|
||||
if (point.y > 0 && point.y < height) {
|
||||
if (point.y > 0 && point.y < (self.notificationHeight != 0.0 ? self.notificationHeight : height)) {
|
||||
return [super hitTest:point withEvent:event];
|
||||
}
|
||||
|
||||
@@ -340,6 +340,7 @@ static void cancel_delayed_block(CWDelayedBlockHandle delayedHandle)
|
||||
self.notificationWindow.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
self.notificationWindow.windowLevel = UIWindowLevelStatusBar;
|
||||
self.notificationWindow.rootViewController = [UIViewController new];
|
||||
self.notificationWindow.notificationHeight = [self getNotificationLabelHeight];
|
||||
}
|
||||
|
||||
- (void)createStatusBarView
|
||||
|
||||
Reference in New Issue
Block a user