added supportedInterfaceOrientations in MVMCoreAlertController

This commit is contained in:
Krishna Kishore Bandaru 2022-12-12 13:58:39 +05:30
parent 8e586e5f01
commit 6874424dd1

View File

@ -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