iOS Developer Library

Developer

Foundation Framework Reference NSNull Class Reference

Options
Deployment Target:

On This Page
Language:

NSNull

Inheritance


Import Statement


Swift

import Foundation

Objective-C

@import Foundation;

Availability


Available in iOS 2.0 and later.

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 *)null

    Return Value

    The singleton instance of NSNull.

    Import Statement

    Objective-C

    @import Foundation;

    Availability

    Available in iOS 2.0 and later.