一个weak引用NSArray的实现

来源:互联网 发布:淘宝卖家退款给买家 编辑:程序博客网 时间:2024/06/06 20:19
NSValue *value = [NSValue valueWithNonretainedObjectValue:myObj];[array addObject:value];and when you get the object:value = [array objectAtIndex:x];myObj = [value nonretainedObjectValue];
0 0
原创粉丝点击