@autoreleasepool
@autoreleasepool {
stu * s=[[[stu allow]init] autorelease];//可以不用release 自动释放会自动销毁
stu * s=[[[stu allow]init] autorelease]autorelease];错误不可以写两次 野指针错误
}
类方法 加入了自动释放池子
@autoreleasepool {
stu * s=[[[stu allow]init] autorelease];//可以不用release 自动释放会自动销毁
stu * s=[[[stu allow]init] autorelease]autorelease];错误不可以写两次 野指针错误
}
类方法 加入了自动释放池子