iOS Developer Library — Prerelease

Developer

Foundation Framework Reference NSNull Class Reference

Options
Deployment Target:

On This Page
Language:

NSNull

The NSNull class defines a singleton object used to represent null values in collection objects (which don’t allow nil values).

  • Returns the singleton instance of NSNull.

    Declaration

    Objective-C

    + (NSNull * _Nonnull)null

    Return Value

    The singleton instance of NSNull.

    Availability

    Available in iOS 2.0 and later.