iOS Developer Library — Pre-Release

Developer

Foundation Framework Reference NSSecureCoding Protocol Reference

Options
Deployment Target:

On This Page
Language:

NSSecureCoding

Conforming to the NSSecureCoding protocol indicates that an object handles encoding and decoding instances of itself in a manner that is robust against object substitution attacks. More...

Inheritance


Not Applicable

Conforms To


Import Statement


Swift

import Foundation

Objective-C

@import Foundation;

Availability


Available in iOS 6.0 and later.
  • Returns whether the class supports secure coding. (required)

    Declaration

    Swift

    static func supportsSecureCoding() -> Bool

    Objective-C

    + (BOOL)supportsSecureCoding

    Return Value

    Return YEStrue if your class supports secure coding, or NOfalse otherwise.

    Import Statement

    Swift

    import Foundation

    Availability

    Available in iOS 6.0 and later.