diff --git a/MVMCore/MVMCore/AlertHandling/MVMCoreAlertController.m b/MVMCore/MVMCore/AlertHandling/MVMCoreAlertController.m index 673c591..11c6fd2 100644 --- a/MVMCore/MVMCore/AlertHandling/MVMCoreAlertController.m +++ b/MVMCore/MVMCore/AlertHandling/MVMCoreAlertController.m @@ -8,6 +8,7 @@ #import "MVMCoreAlertController.h" #import "MVMCoreLoggingHandler.h" +#import "MVMCoreGetterUtility.h" @interface MVMCoreAlertController () @@ -37,4 +38,12 @@ return [NSString stringWithFormat:@"%@|title=%@|message=%@", [super description],self.title,self.message]; } +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { + if ([MVMCoreGetterUtility isOnIPad]) { + return UIInterfaceOrientationMaskAll; + } else { + return UIInterfaceOrientationMaskPortrait; + } +} + @end