2、ARC快速使用
int main(){
Student *s = [[Student alloc] init];
return 0;
}
只需要写一行代码,编译器会在合适的位置释放学生对象,程序员无需考虑释放问题。
2024-01-03 19:23:01
int main(){
Student *s = [[Student alloc] init];
return 0;
}
只需要写一行代码,编译器会在合适的位置释放学生对象,程序员无需考虑释放问题。