From 6874424dd19dcbf0933ad302eb30cf34181af0ef Mon Sep 17 00:00:00 2001 From: Krishna Kishore Bandaru Date: Mon, 12 Dec 2022 13:58:39 +0530 Subject: [PATCH] added supportedInterfaceOrientations in MVMCoreAlertController --- MVMCore/MVMCore/AlertHandling/MVMCoreAlertController.m | 9 +++++++++ 1 file changed, 9 insertions(+) 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