//保持横排方向
-(NSUInteger)supportedInterfaceOrientations{
returnUIInterfaceOrientationMaskLandscapeLeft;
}
- (BOOL)shouldAutorotate
{
returnYES;
iOS设备保持横排方向
原文:http://www.cnblogs.com/wisejoker/p/3553099.html