3 回答
TA贡献1783条经验 获得超5个赞
nil
TA贡献1856条经验 获得超11个赞
可可有几种模式利用了这一事实。
从消息返回到零的值也可能是有效的:
nil
- (void)setValue:(MyClass *)newValue {
if (value != newValue) {
[value release];
value = [newValue retain];
}}nilvaluenewValuenil
nil
if ([myArray count] > 0) {
// do something...}nil
nilnil.
- 3 回答
- 0 关注
- 372 浏览
添加回答
举报
