iOS中如何判断竖排方向锁定呢,需求是横屏时让播放的视频全屏,根据重力感应,但是跟这个开关有关系。
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
According to normal thinking, there will be a notification when the device is rotated UIDeviceOrientationDidChangeNotification Monitor it Then you can judge the direction of the device and adjust your video playback
UIDeviceOrientationDidChangeNotification
You can still judge even if it is locked: https://github.com/oopsr/Devi...
According to normal thinking, there will be a notification when the device is rotated
UIDeviceOrientationDidChangeNotification
Monitor itThen you can judge the direction of the device and adjust your video playback
You can still judge even if it is locked: https://github.com/oopsr/Devi...