Returns a pasteboard identified by name, optionally creating it if it doesn’t exist.
- iOS 3.0+
- Mac Catalyst 13.0+
A string or string constant that identifies (or should identify) the pasteboard.
To create a pasteboard with a
nilname, specify a
nilvalue for this parameter.
A Boolean value that indicates whether the pasteboard should be created if it doesn’t already exist. Specify
NOfor system pasteboards or if you want an existing app pasteboard.
A pasteboard object that can be used for transferring data within an app or between apps that have the same team ID.
Call this method to create custom app pasteboards. (You can also use it to obtain the general pasteboard, but the
general class method exists for that purpose.) App pasteboards returned by this method are not persistent, existing only until the app quits. Starting in iOS 10, persistent named pasteboards are deprecated. Instead use a shared container, as described in the overview for the