<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPasteboard/strings",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPasteboard(py)strings"
  },
  "title" : "strings"
}
-->

# strings

An array of strings in all pasteboard items.

```
var strings: [String]? { get set }
```

## Discussion

The value stored in this property is an array of <doc://com.apple.documentation/documentation/Foundation/NSString> objects. The associated array of representation types is [`typeListString`](/documentation/UIKit/UIPasteboard/typeListString), which includes type `kUTTypeUTF8PlainText`. Setting this property replaces all current items in the pasteboard with the new items.  The returned array may have fewer objects than the number of pasteboard items; this happens if a pasteboard item does not have a value of the indicated type.

> Note:
> Do not use this property to determine if a pasteboard contains string data. Instead, use the ``doc://com.apple.uikit/documentation/UIKit/UIPasteboard/hasStrings`` property.

---

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)