iDev
coco2d 2.0에서 화면 Orientation 설정
KraZYeom
2011. 12. 20. 08:21
반응형
RootViewController.m 의 아래 메소드에서 적절하게 주석값을 풀어 주면 된다.
기본은 모든 방향 가능.
기본은 모든 방향 가능.
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// return YES for the supported orientations
// Only landscape ?
// return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
// Only portrait ?
// return ( ! UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
// All orientations ?
return YES;
}
반응형