竖屏设置
操作环境:Xcode 4.3.2
一、在工程配置文件中设置(XXX-Info.plist)

--该操作无效,具体原因不明,需要后续关注。
二、
程序中控制,每一个自定义的 UIViewController 都有一个方法
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
//return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
--该操作有效。
注意:其他方向的设置方法,请参照方法二。