//when played dotalike games on iPhone or iPad, you may like to rotate this app for land scape.
iOS 6以后
- (NSUInteger)supportedInterfaceOrientations;//设备所支持的方向
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation;//优先支持的方向,如果实现了这个方法的话,设备会优先旋转到这个方向
iOS 5以前
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;//