1、只要在Info.plist里面Supported interface orientations (iPad)
设置 UIInterfaceOrientationLandscapeRight
2、在ViewController中设置:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
return (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
1457

被折叠的 条评论
为什么被折叠?



