Merge branch 'bugfix/alertcontrollerOrientation' into 'develop'

Added supportedInterfaceOrientations in MVMCoreAlertController

### Summary
Added supportedInterfaceOrientations fix in MVMCoreAlertController when iPhone device is rotated while alert controller is presented.

Co-authored-by: Krishna Kishore Bandaru <krishna.kishore.bandaru@verizon.com>

See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/244
This commit is contained in:
Pfeil, Scott Robert 2022-12-20 14:54:42 +00:00
commit 3f59a1c9fe

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