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 48
48
#define kCFCoreFoundationVersionNumber_iOS_8_0 1129.15
49
49
#endif
50
50
51
- #ifndef __IPHONE_8_0
52
- #define __IPHONE_8_0 80000
53
- #endif
54
-
55
51
56
52
static const CGFloat kPadding = 4 .f;
57
53
static const CGFloat kLabelFontSize = 16 .f;
@@ -304,20 +300,11 @@ - (void)handleMinShowTimer:(NSTimer *)theTimer {
304
300
#pragma mark - View Hierrarchy
305
301
306
302
- (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 ]];
318
306
}
319
307
320
-
321
308
- (void )didMoveToSuperview {
322
309
if ([self shouldPerformOrientationTransform ]) {
323
310
[self setTransformForCurrentOrientation: NO ];
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = "MBProgressHUD"
3
- s . version = "1.0 "
3
+ s . version = "0.9 "
4
4
s . summary = "An iOS activity indicator view."
5
5
s . description = <<-DESC
6
6
MBProgressHUD is an iOS drop-in class that displays a translucent HUD
You can’t perform that action at this time.
0 commit comments