Asks the delegate if it can perform the specified action on an item in the collection view.
- iOS 6.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
The collection view object that is making the request.
The selector identifying the action to be performed.
The index path of the affected item.
The object that wants to initiate the action.
true if the command corresponding to action should appear in the editing menu or
false if it should not.
This method is invoked after the
collection method. It gives you the opportunity to exclude commands from the editing menu. For example, the user might have copied some content from one item and wants to paste it into another item that cannot accept the content. In such a case, your method could return
false to prevent the display of the relevant command.
If you do not implement this method, the default return value is