3 回答
TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超8個(gè)贊
nil
TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超2個(gè)贊
可可有幾種模式利用了這一事實(shí)。
從消息返回到零的值也可能是有效的:
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 關(guān)注
- 475 瀏覽
添加回答
舉報(bào)
