【发布时间】:2012-06-18 08:21:20
【问题描述】:
我想知道即使设备的当前方向被锁定(通过双击主页按钮并按下灰色方向锁定图标),如何感知方向变化
不过,我见过可以感知方向变化并改变其控制方向的视频拍摄应用 (UIImagePickerController)。
我知道为了检测变化,我可以使用:
- shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
- UIDeviceOrientationDidChangeNotification
但是如果设备的方向被锁定,这些方法都不起作用。
【问题讨论】:
标签: objective-c ios