UIInterfaceOrientationPortrait 竖直方向 home键在下
UIInterfaceOrientationPortraitUpsideDown 竖直方向 home键在上
UIInterfaceOrientationLandscapeLeft 横向 左
UIInterfaceOrientationLandscapeRight 横向 右
解决ios5跟ios6横竖向的问题
在主视图类里加上:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown)&&(interfaceOrientation != UIInterfaceOrientationPortrait);
}