|      1fengjianxinghun      2015-08-13 09:06:09 +08:00 不看不知道。。。非常有用。。 | 
|  |      2kepenj      2015-08-13 11:41:44 +08:00 可以发到他们官方论坛 去嘲讽他们的工程师~~2333333 | 
|  |      3black      2015-08-13 13:19:19 +08:00 via iPhone 请好好理解文档,文档描述的是参数为空的话返回空字符串,参数是Class类型,空的Class是Nil而不是nil,文档是正确的。 | 
|  |      4banxi1988 OP @black  一开始我也是这样想的, 但是我测试的时候,发现他们是一样的。 查看 objc.h 头文件,发现他们其实是同样的宏定义。 ```c #ifndef Nil # if __has_feature(cxx_nullptr) # define Nil nullptr # else # define Nil __DARWIN_NULL # endif #endif #ifndef nil # if __has_feature(cxx_nullptr) # define nil nullptr # else # define nil __DARWIN_NULL # endif #endif ``` |