Files
LayaNative2.0/Conch/build/conch/proj.ios/LayaBox/NavViewController.mm
T
2020-11-11 16:17:13 +08:00

20 lines
618 B
Plaintext

#import "NavViewController.h"
@implementation NavViewController
- (void)viewDidLoad{
[super viewDidLoad];
self.navigationBar.hidden = TRUE;
}
- (BOOL)shouldAutorotate{
return [[self.viewControllers lastObject]shouldAutorotate];
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
return [[self.viewControllers lastObject]supportedInterfaceOrientations];
//return [conchConfig GetInstance]->m_nOrientationType;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
return [[self.viewControllers lastObject] preferredInterfaceOrientationForPresentation];
}
@end