目前我把它理解为一种“空对象”。但它到底是什么呢?
发布于 2009-12-04 02:43:46
nil只能与指针一起使用,nil表示指向nothing (它的值为零)的指针
NSString *myString = nil; // myString points to nothing
int x = nil; // invalid, "x" is not a pointer, but it will compilehttps://stackoverflow.com/questions/1841983
复制相似问题