【发布时间】:2012-02-09 02:10:01
【问题描述】:
我有一个纵向模式的 iPhone 应用程序,它显示一个 web 视图。在 webview 中有一个 HTML5 视频,我将在横向模式下显示它。
所以我在 ViewControlleDelegate 方法中有(因为我的应用程序仅处于纵向模式):
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
return NO;
}
所以只有当我显示 HTML5 视频时,webkit 或我的应用程序有一种方法可以切换到横向模式?
谢谢!
【问题讨论】:
标签: iphone html5-video mobile-webkit device-orientation