2、ARC快速使用
int main(){
Student *s = [[Student alloc] init];
return 0;
}
只需要写一行代码,编译器会在合适的位置释放学生对象,程序员无需考虑释放问题。
int main(){
Student *s = [[Student alloc] init];
return 0;
}
只需要写一行代码,编译器会在合适的位置释放学生对象,程序员无需考虑释放问题。
转载于:https://www.cnblogs.com/yaowen/p/5315903.html