我刚接触 iPhone 开发。在我的应用中,我希望以垂直方向显示设备上的网页视图。它还应该支持横向方向。我使用了下面的方法,但没有达到预期的效果。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait ||
interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation ==
UIInterfaceOrientationLandscapeRight);
}
请指导我。请帮帮我。谢谢。