3 回答
 
                    
                    TA贡献1966条经验 获得超4个赞
nil
 
                    
                    TA贡献1804条经验 获得超7个赞
可可有几种模式利用了这一事实。 
从消息返回到零的值也可能是有效的: 
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 关注
- 524 浏览
添加回答
举报
