Compare commits

..

6 Commits

Author SHA1 Message Date
Cezary Wojcik 36e5ea38b6 2.2.2 2014-10-21 19:57:35 -07:00
Cezary Wojcik c6fcfa1d2a Merge pull request #42 from drumnkyle/master
Fixing the fix to the hitTest
2014-10-21 19:44:36 -07:00
Kyle Sherman 70e603a058 Fixing the fix to the hitTest
Missing parenthesis made the check pass for the whole screen. Fixed
this issue.
2014-10-21 14:12:50 -07:00
Cezary Wojcik e488b4c76b Merge pull request #41 from drumnkyle/master
Fixing issue #40
2014-10-21 13:13:42 -07:00
Kyle Sherman f1d9606940 Fixing issue #40
Fixing issue #40 where a tap in the notification frame when it is in
the style of NavigationBar would not be detected for the notification
window.
2014-10-21 11:41:50 -07:00
Cezary Wojcik 93750ca9a2 cocoapods lied to me 2014-10-18 11:09:11 -07:00
4 changed files with 7 additions and 5 deletions
+1 -3
View File
@@ -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
+1 -1
View File
@@ -18,7 +18,7 @@ Works for iPhone and iPad.
### CocoaPods
`pod 'CWStatusBarNotification', '~> 2.2.1'`
`pod 'CWStatusBarNotification', '~> 2.2.2'`
### Manual