IOS开发中 如果只想允许用户竖屏显示界面,只需要在Info.plist文件中,打开Supported interface orientation选项
然后只保留Portrait,其它(绿色箭头总会)的都删除就可以了。