您的位置:首页 > 运维架构

simple codes for property

2011-04-21 18:03 169 查看
哈哈

//assign

property = newValue;

//retain

if(property != newValue)

{

[property release];

property =[newValue retain];

}

//copy

if(property != newValue)

{

[property release];

property =[newValue copy];

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: