<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCNDEFMessage",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "c:objc(cs)NFCNDEFMessage"
  },
  "title" : "NFCNDEFMessage"
}
-->

# NFCNDEFMessage

An NFC NDEF message consisting of an array of payload records.

```
class NFCNDEFMessage
```

## Topics

### Creating an NDEF Message

[`-  initWithNDEFRecords:`](/documentation/CoreNFC/NFCNDEFMessage/init(records:))

Creates an NDEF message with the specified records.

[`+  ndefMessageWithData:`](/documentation/CoreNFC/NFCNDEFMessage/init(data:))

Creates an NDEF message from raw data representing the message.

### Accessing NDEF Records

[`records`](/documentation/CoreNFC/NFCNDEFMessage/records)

An array of records for the message.

### Getting the Message Length

[`length`](/documentation/CoreNFC/NFCNDEFMessage/length)

The length, in bytes, of the NDEF message when stored on an NFC tag.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)