2012-01-12 70 views
2

我有一個iPhone應用程序在縱向模式下顯示web視圖。在webview中有一個HTML5視頻,我將以橫向模式顯示它。當我顯示HTML5視頻時的橫向方向

所以我在我的ViewControlleDelegate方法(因爲我的應用程序只能在肖像模式):

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ 
    return NO; 
} 

因此,有從WebKit的或我的應用程序的方式在橫向模式下切換,只有當我呈現出HTML5視頻?

謝謝!

回答

0

嘗試使用:[[UIApplication sharedApplication] setStatusBarOrientation:animated:]。我認爲它必須幫助你。

相關問題