刚开始接触IPhone开发,在使用xcode4.6开发应用程序时,如果需要设置应用程序支持所有的方向,需按照以下两个步骤进行:
1. 选中四个方向

2. 在Controller中添加以下代码
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAll;
}
至此才OVER.
浙公网安备 33010602011771号