iOS处理Orientation
在iOS6以后Orientation可以在plist文件里面进行设置。设置项是“Supported interface orientations”。 如果在iOS5或者一下版本UIViewController类默认支持Portrait only,要支持其他Orientation,需要重写shouldAutorotateToInterfaceOrientation:方法。 - (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) orientation { return UIInterfaceOrientationIsPortrait(orientation); // only support portrait return YES; // support all orientations return (orientation != UIInterfaceOrientationPortraitUpsideDown); // anyting but } 本文转自Jake Lin博客园博客,原文链接:http://www.cnblogs.com/procoder/archive/2013/01/03/ios-orientations.html,如需转载请自行联系原作者