iOS Developer Library

Developer

CoreFoundation Framework Reference CFBoolean Reference

Options
Deployment Target:

On This Page
Language:

CFBoolean Reference

CFBoolean objects are used to wrap boolean values for use in Core Foundation property lists and collection types.

Functions

  • Returns the Core Foundation type identifier for the CFBoolean opaque type.

    Declaration

    Swift

    func CFBooleanGetTypeID() -> CFTypeID

    Objective-C

    CFTypeID CFBooleanGetTypeID ( void );

    Return Value

    The Core Foundation type identifier for CFBoolean opaque type.

    Import Statement

    import CoreFoundation

    Availability

    Available in iOS 2.0 and later.

  • Returns the value of a CFBoolean object as a standard C type Boolean.

    Declaration

    Swift

    func CFBooleanGetValue(_ boolean: CFBoolean!) -> Boolean

    Objective-C

    Boolean CFBooleanGetValue ( CFBooleanRef boolean );

    Parameters

    boolean

    The boolean to examine.

    Return Value

    The value of boolean.

    Import Statement

    import CoreFoundation

    Availability

    Available in iOS 2.0 and later.

Data Types

Miscellaneous

  • A reference to a CFBoolean object.

    Declaration

    Swift

    typealias CFBooleanRef = CFBoolean

    Objective-C

    typedef const struct __CFBoolean *CFBooleanRef;

    Discussion

    CFBoolean objects are used to wrap boolean values for use in Core Foundation property lists and collection types.

    Import Statement

    import CoreFoundation

    Availability

    Available in iOS 2.0 and later.

Constants

Miscellaneous

  • CFBoolean evaluates to either true or false values where kCFBooleanTrue is the true, and kCFBooleanFalse is the false value.

    Declaration

    Swift

    let kCFBooleanTrue: CFBoolean! let kCFBooleanFalse: CFBoolean!

    Objective-C

    const CFBooleanRef kCFBooleanTrue; const CFBooleanRef kCFBooleanFalse;

    Constants

    • kCFBooleanTrue

      kCFBooleanTrue

      Boolean true value.

      Available in iOS 2.0 and later.

    • kCFBooleanFalse

      kCFBooleanFalse

      Boolean false value.

      Available in iOS 2.0 and later.

    Import Statement