【发布时间】:2011-01-20 12:19:22
【问题描述】:
我是 iphone 开发的新手。在我的应用程序中,我想在具有 c 纵向方向的设备中显示 web 视图。它还应该支持横向方向。我使用了以下方法,但没有预期的输出。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait ||
interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation ==
UIInterfaceOrientationLandscapeRight);
}
请指导我。请帮助我。谢谢
【问题讨论】:
标签: iphone uiwebview landscape screen-orientation