Skip to content

Commit 28c44be

Browse files
committed
Bring back inline with MateJ's fork
1 parent c938b0f commit 28c44be

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

MBProgressHUD.m

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848
#define kCFCoreFoundationVersionNumber_iOS_8_0 1129.15
4949
#endif
5050

51-
#ifndef __IPHONE_8_0
52-
#define __IPHONE_8_0 80000
53-
#endif
54-
5551

5652
static const CGFloat kPadding = 4.f;
5753
static const CGFloat kLabelFontSize = 16.f;
@@ -304,20 +300,11 @@ - (void)handleMinShowTimer:(NSTimer *)theTimer {
304300
#pragma mark - View Hierrarchy
305301

306302
- (BOOL)shouldPerformOrientationTransform {
307-
308-
#if (__IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_8_0)
309-
static BOOL isPreiOS8SDK = YES;
310-
#else
311-
static BOOL isPreiOS8SDK = NO;
312-
#endif
313-
314-
BOOL isPreiOS8 = NSFoundationVersionNumber < kCFCoreFoundationVersionNumber_iOS_8_0;
315-
BOOL transformationRequired = isPreiOS8 || isPreiOS8SDK;
316-
317-
return transformationRequired && [self.superview isKindOfClass:[UIWindow class]];
303+
BOOL isPreiOS8 = NSFoundationVersionNumber < kCFCoreFoundationVersionNumber_iOS_8_0;
304+
// prior to iOS8 code needs to take care of rotation if it is being added to the window
305+
return isPreiOS8 && [self.superview isKindOfClass:[UIWindow class]];
318306
}
319307

320-
321308
- (void)didMoveToSuperview {
322309
if ([self shouldPerformOrientationTransform]) {
323310
[self setTransformForCurrentOrientation:NO];

MBProgressHUD.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MBProgressHUD"
3-
s.version = "1.0"
3+
s.version = "0.9"
44
s.summary = "An iOS activity indicator view."
55
s.description = <<-DESC
66
MBProgressHUD is an iOS drop-in class that displays a translucent HUD

0 commit comments

Comments
 (0)