iOS Developer Library — Pre-Release

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).

Inheritance


Import Statement


Swift

import Foundation

Objective-C

@import Foundation;

Availability


Available in iOS 2.0 and later.
  • Returns the singleton instance of NSNull.

    Declaration

    Objective-C

    + (NSNull *)null

    Return Value

    The singleton instance of NSNull.

    Availability

    Available in iOS 2.0 and later.