편집

다음을 통해 공유


UICollectionViewController.CanPerformAction Method

Definition

Whether the edit menu should have Copy and Paste commands for the specified cell.

[Foundation.Export("collectionView:canPerformAction:forItemAtIndexPath:withSender:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool CanPerformAction (UIKit.UICollectionView collectionView, ObjCRuntime.Selector action, Foundation.NSIndexPath indexPath, Foundation.NSObject sender);
abstract member CanPerformAction : UIKit.UICollectionView * ObjCRuntime.Selector * Foundation.NSIndexPath * Foundation.NSObject -> bool
override this.CanPerformAction : UIKit.UICollectionView * ObjCRuntime.Selector * Foundation.NSIndexPath * Foundation.NSObject -> bool

Parameters

collectionView
UICollectionView

Collection view managed by this view controller.

action
Selector

The action that is to be performed.

indexPath
NSIndexPath

Index path for the affected item.

sender
NSObject

Initiator for the action.

Returns

Returns true if the specified command corresponding to the action should appear in the editing menu.

Attributes

Applies to