你好,你们提供的旋屏配置方向包括
portrait_up //竖屏时,屏幕在home键的上面portrait_down //竖屏时,屏幕在home键的下面,部分手机如iPhone X系列不支持landscape_left //横屏时,屏幕在home键的左边landscape_right //横屏时,屏幕在home键的右边auto //屏幕根据重力感应在横竖屏间自动切换auto_portrait //屏幕根据重力感应在竖屏间自动切换auto_landscape //屏幕根据重力感应在横屏间自动切换
我们需要让页面自动旋屏但是不需要home键在上的方向([color=rgba(0, 0, 0, 0.85)]UIDeviceOrientationPortraitUpsideDown),我们现在设置了
[color=rgba(0, 0, 0, 0.85)][self[color=rgba(0, 0, 0, 0.85)] setScreenOrientation[color=rgba(0, 0, 0, 0.85)]:@{@"orientation"[color=rgba(0, 0, 0, 0.85)]: @"auto"}[color=rgba(0, 0, 0, 0.85)]];
[self setShouldAutorotate:YES]; 不是我们想要的效果,有办法配置吗? |