2015年3月26日星期四

객체 생성하기(alloc,release)

alloc와 release는 묶어서 나타나야 한다.

alloc는 메모리를 할당하는 것이고 release는 반납하겠다는 뜻이다.

예문
sample =[[MySample alloc] init];
[sample release];


没有评论:

发表评论