class UIAlertController
Public Instance Methods
shouldAutorotate()
click to toggle source
# File lib/ProMotion/XLForm/ui_alert_controller.rb, line 11 def shouldAutorotate true end
supportedInterfaceOrientations()
click to toggle source
workaround for Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIAlertController:supportedInterfaceOrientations was invoked recursively!'
# File lib/ProMotion/XLForm/ui_alert_controller.rb, line 5 def supportedInterfaceOrientations orientation = UIApplication.sharedApplication.statusBarOrientation orientation == UIDeviceOrientationPortrait || orientation == UIDeviceOrientationPortraitUpsideDown ? UIInterfaceOrientationMaskPortrait : UIInterfaceOrientationMaskLandscape end