#if OBJC
@end
@interface UIViewController (B4IResize)
@end
@implementation UIViewController (B4IResize)
-(BOOL)shouldAutorotate
{
return [(NSNumber*)[B4IObjectWrapper raiseEvent:self :@"_shouldautorotate" :nil] boolValue];
}
-(UIInterfaceOrientationMask)supportedInterfaceOrientations
{
//https://developer.apple.com/documentation/uikit/uiinterfaceorientationmask/uiinterfaceorientationmaskportrait?language=objc
//return UIInterfaceOrientationMaskPortrait;
return 1;
}
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
//https://developer.apple.com/documentation/uikit/uiinterfaceorientation/portrait
return 1;
}
//setNeedsUpdateOfSupportedInterfaceOrientations()
#End If