File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 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
5652static const CGFloat kPadding = 4 .f;
5753static 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 ];
Original file line number Diff line number Diff line change 11Pod ::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
You can’t perform that action at this time.
0 commit comments