在设置控制器里加上这个方法 (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{ return UIInterfaceOrientationPortrait;}
以截图
第二张图的四个选项,只勾选第一个
望采纳!