<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICloudSharingControllerDelegate/itemType(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICloudSharingControllerDelegate(im)itemTypeForCloudSharingController:"
  },
  "title" : "itemType(for:)"
}
-->

# itemType(for:)

Asks the delegate for the Uniform Type Identifier (UTI) of the item.

```
optional func itemType(for csc: UICloudSharingController) -> String?
```

## Discussion

[`UICloudSharingController`](/documentation/UIKit/UICloudSharingController) uses the UTI to determine if the shared item is a special type. This allows text presented by the controller to refer to the item using descriptive wording. For example, if the shared item is a presentation and `kUTTypePresentation` is returned, the screens refer to the shared item as a *presentation*. Likewise, if the shared item is a document and `kUTTypeContent` is returned, the screens refer to the item as a *document*. And when `kUTTypeSpreadsheet` is returned, the screens refer to the item as a *spreadsheet*.

For types unique to your app, return `nil` or do not implement this method.

```objc
- (nullable NSString *)itemTypeForCloudSharingController:(UICloudSharingController *)csc
{
  return (NSString*)kUTTypePNG; // Add #import <MobileCoreServices/MobileCoreServices.h> to use UTI constants.
}
```

---

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)