【发布时间】:2010-05-14 11:23:35
【问题描述】:
我正在处理一些 HTML 内容作为 iPad 应用程序的一部分。我们可能需要将 UIWebView 的内容锁定为纵向模式,但该应用程序已经提交给 Apple,我发现实现这一点的唯一参考是 this question,它给出了这个示例
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return NO;
}
但是有没有什么方法可以在 UIWebViews 内容中使用 HTML 或 Javascript 实现相同的功能?
【问题讨论】:
标签: javascript html cocoa-touch uiwebview