<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSPresentationIntent/tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPresentationIntent(cm)tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:"
  },
  "title" : "tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:"
}
-->

# tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:

Creates a table intent with the provided information.

```
+ (NSPresentationIntent *) tableIntentWithIdentity:(NSInteger) identity columnCount:(NSInteger) columnCount alignments:(NSArray<NSNumber *> *) alignments nestedInsideIntent:(NSPresentationIntent *) parent;
```

## Parameters

`identity`

The unique identifier for the intent.

`columnCount`

The number of columns in the table.

`alignments`

The text alignments for each column. For each `NSNumber` in the array, set the value to a value from the [`NSPresentationIntentTableColumnAlignment`](/documentation/Foundation/NSPresentationIntentTableColumnAlignment) enumerated type.

`parent`

The parent intent of the table.

## Return Value

A new intent with the kind set to [`NSPresentationIntentKindTable`](/documentation/Foundation/NSPresentationIntentKind/NSPresentationIntentKindTable).

---

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)