반응형
기본은 모든 방향 가능.
// 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;
}
반응형
'iDev' 카테고리의 다른 글
iOS 5 화면 밝기 조절 API (0) | 2011.12.25 |
---|---|
[Obj-C] 두 점의 각도 구하기 (1) | 2011.12.22 |
coco2d 2.0에서 화면 Orientation 설정 (0) | 2011.12.20 |
Xcode __mycompanyname__ 를 자신의 회사명으로 설정 (0) | 2011.12.20 |
cocos2d install 시 퍼미션 문제 해결방법 (0) | 2011.12.20 |
[iOS Dev] Image&String 등을 Image로 합치기 (0) | 2011.07.31 |
댓글을 달아 주세요