What's the Difference Between nil and Nil

前端 未结 3 2071
醉话见心
醉话见心 2021-02-12 03:40

In Objective C?

Are they really the same thing?

How to test that an object is nil?

3条回答
  •  再見小時候
    2021-02-12 04:19

    • nil (all lower-case) is a null pointer to an Objective-C object.
    • Nil (capitalized) is a null pointer to an Objective-C class.
    • NULL (all caps) is a null pointer to anything else.

提交回复
热议问题