Instance Method

cut(_:)

Removes the selected content and writes the data for it to the pasteboard.

Declaration

optional func cut(_ sender: Any?)

Parameters

sender

The object calling this method.

Discussion

UIKit calls this method when the user selects the Cut command from an editing menu. Your implementation should write the selected content to the pasteboard and then remove it from your interface.

See Also

Handling Copy, Cut, Paste, and Delete Commands

func copy(Any?)

Copies the selected content to the pasteboard.

func paste(Any?)

Pastes the current contents of the pasteboard into your app's interface.

func delete(Any?)

Removes the selected content from your interface.