Compare commits

..

4 Commits

Author SHA1 Message Date
Cezary Wojcik 975ca58291 2.2.5 2015-05-04 07:08:59 -07:00
Cezary Wojcik d9d8c1d342 Merge pull request #50 from somethingkindawierd/master
Fix calculation of navbar height
2015-05-01 15:39:11 -07:00
Jon Beebe e700d781cc Fix calculation of navbar height 2015-04-30 11:41:45 -05:00
Cezary Wojcik 6882883e21 2.2.4 2015-04-15 12:16:12 -07:00
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CWStatusBarNotification"
s.version = "2.2.3"
s.version = "2.2.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"
@@ -22,7 +22,7 @@
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
CGFloat height;
if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
height = [UIApplication sharedApplication].statusBarFrame.size.width;
}
else {
@@ -56,7 +56,7 @@
self._cwViewControllerSupportedInterfaceOrientation = supportedInterfaceOrientations;
}
- (NSUInteger)supportedInterfaceOrientations
- (NSInteger)supportedInterfaceOrientations
{
return self._cwViewControllerSupportedInterfaceOrientation;
}
@@ -223,7 +223,7 @@ static void cancel_delayed_block(CWDelayedBlockHandle delayedHandle)
return self.notificationLabelHeight;
}
CGFloat statusBarHeight = [[UIApplication sharedApplication] statusBarFrame].size.height;
if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
statusBarHeight = [[UIApplication sharedApplication] statusBarFrame].size.width;
}
return statusBarHeight > 0 ? statusBarHeight : 20;
@@ -231,7 +231,7 @@ static void cancel_delayed_block(CWDelayedBlockHandle delayedHandle)
- (CGFloat)getStatusBarWidth
{
if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
if (SYSTEM_VERSION_LESS_THAN(@"8.0") && UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
return [UIScreen mainScreen].bounds.size.height;
}
return [UIScreen mainScreen].bounds.size.width;
@@ -272,7 +272,7 @@ static void cancel_delayed_block(CWDelayedBlockHandle delayedHandle)
- (CGFloat)getNavigationBarHeight
{
if (UIDeviceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ||
if (UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ||
UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return 44.0f;
}
+1 -1
View File
@@ -18,7 +18,7 @@ Works for iPhone and iPad.
### CocoaPods
`pod 'CWStatusBarNotification', '~> 2.2.3'`
`pod 'CWStatusBarNotification', '~> 2.2.5'`
### Manual