遇到了这个问题,有特定视图需要强制使用横屏来显示,原来是通过:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
interfaceOrientation == UIInterfaceOrientationLandscapeRight;
}
来实现的,但在iOS5.1下就不起作用了(iOS5.0是好的)...
查了下SO上也有相同的问题:
http://stackoverflow.com/questions/9696017/modal-view-controller-rotates-incorrectly-in-ios-5-1-not-in-5-0
请指教~