«foundationkit» 태그된 질문

7
NSAutoreleasePool 자동 릴리스 풀은 어떻게 작동합니까?
내가 알기로는 alloc , new 또는 copy로 만든 모든 것은 수동으로 해제해야합니다. 예를 들면 : int main(void) { NSString *string; string = [[NSString alloc] init]; /* use the string */ [string release]; } 내 질문은 이것이 유효하지 않습니까? : int main(void) { NSAutoreleasePool *pool; pool = [[NSAutoreleasePool alloc] init]; NSString …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.