APP中首页是横屏,设置界面是竖屏。但是如果手机转屏功能不锁定,进入设置界面APP会横屏。求如何让APP在设置界面强制竖屏?
学习是最好的投资!
以截图第二张图的四个选项,只勾选第一个
望采纳!
在设置控制器里加上这个方法
(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{ return UIInterfaceOrientationPortrait;}
以截图
第二张图的四个选项,只勾选第一个
望采纳!
在设置控制器里加上这个方法
(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationPortrait;
}