File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636static SIAlertBackgroundWindow *__si_alert_background_window;
3737static SIAlertView *__si_alert_current_view;
3838
39-
39+ # ifdef __IPHONE_7_0
4040@interface UIWindow (SIAlert_StatusBarUtils)
4141
4242- (UIViewController *)viewControllerForStatusBarStyle ;
@@ -78,6 +78,7 @@ - (UIViewController *)viewControllerForStatusBarHidden
7878}
7979
8080@end
81+ #endif
8182
8283
8384@interface SIAlertView ()
@@ -209,12 +210,14 @@ - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrie
209210 [self .alertView invalidateLayout ];
210211}
211212
213+ #ifdef __IPHONE_7_0
212214- (void )willAnimateRotationToInterfaceOrientation : (UIInterfaceOrientation)toInterfaceOrientation duration : (NSTimeInterval )duration
213215{
214216 if ([self respondsToSelector: @selector (setNeedsStatusBarAppearanceUpdate )]) {
215217 [self setNeedsStatusBarAppearanceUpdate ];
216218 }
217219}
220+ #endif
218221
219222- (NSUInteger )supportedInterfaceOrientations
220223{
@@ -231,6 +234,7 @@ - (BOOL)shouldAutorotate
231234 return YES ;
232235}
233236
237+ #ifdef __IPHONE_7_0
234238- (UIStatusBarStyle)preferredStatusBarStyle
235239{
236240 UIWindow *window = self.alertView .oldKeyWindow ;
@@ -248,6 +252,7 @@ - (BOOL)prefersStatusBarHidden
248252 }
249253 return [[window viewControllerForStatusBarHidden ] prefersStatusBarHidden ];
250254}
255+ #endif
251256
252257@end
253258
You can’t perform that action at this time.
0 commit comments