xcode5는 스토리보드를 사용하지 않습니다
-(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {self.window =[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];// Override point for customization after application launch.TestViewController*test =[[TestViewController alloc] initWithNibName:@"TestViewController" bundle:nil];UINavigationController*nav =[[UINavigationController alloc] initWithRootViewController:test];self.window.rootViewController = nav;[self.window makeKeyAndVisible];return YES;}
아크 제거 단계1) 빌드 설정에서 자동 참조 카운팅을 NO로 설정합니다.
///////////////////////////////////////////////////////////////////////END///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
스토리보드와 ARC를 사용하여 이미 애플리케이션을 만든 경우
스토리 보드 제거 단계
1) 프로젝트에서 Main.storyboard 파일을 제거합니다.
2) 컨트롤러용 xib를 사용하여 새 파일을 추가합니다. 빌드 단계에서 컴파일된 소스에 추가되지 않은 경우 수동으로 추가합니다.
3) plist에서 메인 스토리보드 파일 기본 이름을 제거합니다.
4) appdelegate didFinishLaunchingWithOptions 파일을 변경하고 다음을 추가합니다.
self.window =[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];[self.window makeKeyAndVisible];
처럼 :-(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {self.window =[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];// Override point for customization after application launch.TestViewController*test =[[TestViewController alloc] initWithNibName:@"TestViewController" bundle:nil];UINavigationController*nav =[[UINavigationController alloc] initWithRootViewController:test];self.window.rootViewController = nav;[self.window makeKeyAndVisible];return YES;}
이제 위의 예에서 다음과 같이 메모리 관리를 수동으로 관리해야 합니다.self.window =[[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];[test release];
아크 제거 단계1) 빌드 설정에서 자동 참조 카운팅을 NO로 설정합니다.
ARC 제거: 빌드 설정 -> Objective-C 자동 참조 계산 -> 아니요로 이동합니다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
대구AI스쿨 실무 프로젝트프로젝트 명칭 : <구로 항동 발도르프 킨더교육원> 사이트 구축 일반적으로 웹 사이트 구축은 크게 기획, 디자인, 퍼블리싱, 개발이라는 4단계를 거쳐서 진행된다. 요구분석 > 기획 > 디자인 > 퍼블리싱 > 개발 >...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.