Programming
No. | 587 |
Name. | 로꼬다 |
Subject. | 가로화면이 디폴트인 어플 구현 |
Main Cate. | iOS |
Sub Cate. | iOS |
Date. | 2009-04-06 22:57 |
Hit. | 3459 (211.36.27.28) |
File. | |
우선 기본 화면은 UIView 위에 구현되어 있어야 한다 화면의 회전이 UIView에 구현이 되어 있는듯 합니다. Window Base Application으로 생성할 경우 적용되지 않음. info.plist 에 다음의 키를 추가 UIInterfaceOrientation // UIInterfaceOrientationLandscapeRight ViewController 에 다음의 함수를 추가 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } //위의 인터페이스 디렉션에 대해서만 YES를 리턴함. //return YES; 로 코딩할 경우 모든 회전에 대해서 반응함 [바로가기 링크] : http://coolx.net/cboard/develop/587 |
|
|
|
[Modify] [Delete] | [Reply] [List] |