我正在研究一些HTML内容作为iPad应用程序的一部分。我们可能需要锁定的UIWebView到肖像模式的内容,但应用程序已经提交给苹果,我已经发现achieveing这个唯一的参考是this question这给这个例子我可以用Javascript或HTML锁定UIWebView的方向吗?
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return NO;
}
不过是有没有什么办法可以在UIWebViews内容中用HTML或Javascript实现同样的事情?