只需设置info.plist中的 Supported interface orientations ,将除Portrait 外其他项删除即可 模拟器中按 command + 方向键,来查看横竖屏切换问题