0
我需要獲取設備方向,但可能是因爲我正在開發的應用程序只支持縱向方向,它似乎永遠不會改變。我試過[AVCaptureConnection videoOrientation]
,[[UIDevice currentDevice] orientation]
和[[UIApplication sharedApplication] statusBarOrientation]
,無濟於事。方向總是說「肖像」。AVCaptureVideoOrientation永遠不會改變
有沒有辦法獲得真實的方向?