posted @ 2013-06-14 16:58 tao tao 阅读(116) 评论(0) 推荐(0)
摘要:
刚开始接触IPhone开发,在使用xcode4.6开发应用程序时,如果需要设置应用程序支持所有的方向,需按照以下两个步骤进行:1. 选中四个方向2. 在Controller中添加以下代码- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{ return YES;}- (NSUInteger)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskAll;}至此才OVER. 阅读全文