2012-06-18 50 views
0

不知如何看待即使該器件的電流方向已被鎖定(雙擊home鍵的同時按灰色方向鎖定圖標)怎麼做定向檢測,即使設備已鎖定方向

但是方向變化,我已經看過視頻拍攝應用(UIImagePickerController),可以感知方向變化並改變其控制方向。

我知道檢測的變化,我可以使用:

- shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 
- UIDeviceOrientationDidChangeNotification 

但如果設備的方向被鎖定既不這些方法的工作。

+0

的可能重複[檢測iOS設備方向鎖定(http://stackoverflow.com/questions/5410763/detect-ios-device-orientation -lock) – rishi

回答