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