Type Method

pasteboardWithUniqueName

Returns an app pasteboard identified by a unique system-generated name.

Declaration

+ (UIPasteboard *)pasteboardWithUniqueName;

Return Value

An app pasteboard object with a unique name.

Discussion

Obtain the value of the name property to discover the name of the returned pasteboard. 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 UIPasteboard class.

See Also

Getting and Removing Pasteboards

generalPasteboard

Returns the systemwide general pasteboard, which is used for general copy-paste operations

+ pasteboardWithName:create:

Returns a pasteboard identified by name, optionally creating it if it doesn’t exist.

+ removePasteboardWithName:

Invalidates the designated app pasteboard.