(NSUInteger)supportedInterfaceOrientations 没有在我在项目的 UIViewController 中使用过的自定义框架中被调用,而在单独的项目中它工作正常并且被正确调用
(BOOL)shouldAutorotate { 返回 YES; }
(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; }
(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationPortrait; }
有没有办法通过项目中的自定义框架调用它?