NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; //1. 메모리 관리
// insert code here... //2. 코멘트
NSLog(@"Hello, World!"); //3. 문자열 출력
[pool drain]; //4. 메모리 관리
NSAutoreleasePool * pool
= [[NSAutoreleasePool alloc]
init] ;
NSLog(@"Hello, World!"); NSLog(@"Hello, Korea!"); //한 줄에 2개의 문장을 기술
NSLog(@"Hello, World!"); //문자열을 출력
[Objective-C] NSLog 함수 (0) | 2012.01.07 |
---|---|
[Objective-C] Objective-C의 헤더파일 (0) | 2012.01.07 |
[Objective-C] 소스파일의 구조와 헤더파일 추가(import) (2) | 2012.01.03 |
[Objective-C] 가비지 컬섹션(Garbage Collection) (0) | 2012.01.03 |
[Objective-C] Framework(프레임워크) (3) | 2012.01.01 |