Protocol

UIResponderStandardEditActions

A set of standard methods that apps can adopt to support editing.

Declaration

@protocol UIResponderStandardEditActions

Overview

Responder objects can implement the methods of this protocol to handle standard editing-related actions. For example, a UIMenuController object reports editing actions using these methods. The menu controller then asks UIKit to search the responder chain for an object that implements the appropriate method, calling the method on the first object that implements it.

Topics

Handling Copy, Cut, Paste, and Delete Commands

- cut:

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

- copy:

Copies the selected content to the pasteboard.

- paste:

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

- delete:

Removes the selected content from your interface.

Handling Selection Commands

- select:

Selects the content in your responder.

- selectAll:

Selects all of the content in the current responder.

Handling Styled Text Editing

- toggleBoldface:

Toggles the bold style information of the selected text.

- toggleItalics:

Toggles the italic style information of the selected text.

- toggleUnderline:

Toggles the underline style information of the selected text.

Handling Writing Direction Changes

- makeTextWritingDirectionLeftToRight:

Change the writing direction to left-to-right.

- makeTextWritingDirectionRightToLeft:

Change the writing direction to right-to-left.

Handling Size Changes

- increaseSize:

Increase the size of the current object by one unit.

- decreaseSize:

Decrease the size of the current object by one unit.

Handling Other Text Formatting Changes

- updateTextAttributesWithConversionHandler:

Tells your app to update the attributes of the currently selected text.

Relationships

Inherits From

Conforming Types

See Also

Inline Edit Menus

UIMenuController

The menu interface for the Cut, Copy, Paste, Select, Select All, and Delete commands.

UIMenuItem

A custom item in the editing menu managed by the menu controller.