|
|
|
@@ -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;
|
|
|
|
|
}
|
|
|
|
|