2

我正在制作应用程序扩展,并希望方向仅为纵向。加载我的应用程序扩展后,我可以阻止我正在扩展为横向的应用程序的旋转吗?

我尝试在我的扩展的 UIViewController 中添加这些方法,但它似乎没有改变任何东西:

- (BOOL)shouldAutorotate;

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
4

0 回答 0