diff --git a/Pickers/SWActionSheet.m b/Pickers/SWActionSheet.m index bec6f9220..73c9acc5a 100644 --- a/Pickers/SWActionSheet.m +++ b/Pickers/SWActionSheet.m @@ -235,8 +235,13 @@ - (void)presentActionSheetAnimated:(BOOL)animated } } --(NSUInteger)supportedInterfaceOrientations{ - return [self.actionSheet getMasking]; +#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 +- (NSUInteger)supportedInterfaceOrientations +#else +- (UIInterfaceOrientationMask)supportedInterfaceOrientations +#endif +{ + return (NSUInteger) [self.actionSheet getMasking]; } - (BOOL)prefersStatusBarHidden {