<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIDataMatrixCodeDescriptor/descriptorWithPayload:rowCount:columnCount:eccVersion:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIDataMatrixCodeDescriptor(cm)descriptorWithPayload:rowCount:columnCount:eccVersion:"
  },
  "title" : "descriptorWithPayload:rowCount:columnCount:eccVersion:"
}
-->

# descriptorWithPayload:rowCount:columnCount:eccVersion:

Creates a Data Matrix code descriptor for the given payload and parameters.

```
+ (instancetype) descriptorWithPayload:(NSData *) errorCorrectedPayload rowCount:(NSInteger) rowCount columnCount:(NSInteger) columnCount eccVersion:(CIDataMatrixCodeECCVersion) eccVersion;
```

## Parameters

`errorCorrectedPayload`

The data to encode in the Data Matrix code symbol.

`rowCount`

The number of rows in the Data Matrix code symbol.

`columnCount`

The number of columns in the Data Matrix code symbol.

`eccVersion`

The [`CIDataMatrixCodeDescriptor.ECCVersion`](/documentation/CoreImage/CIDataMatrixCodeDescriptor/ECCVersion-swift.enum) for the Data Matrix code symbol.

## Return Value


An autoreleased [`CIAztecCodeDescriptor`](/documentation/CoreImage/CIAztecCodeDescriptor) instance
or `nil` if the parameters are invalid

---

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)