Edit

Share via


UICollectionViewController.ShouldDeselectItem Method

Definition

Whether the specified item should be deselected.

[Foundation.Export("collectionView:shouldDeselectItemAtIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldDeselectItem (UIKit.UICollectionView collectionView, Foundation.NSIndexPath indexPath);
abstract member ShouldDeselectItem : UIKit.UICollectionView * Foundation.NSIndexPath -> bool
override this.ShouldDeselectItem : UIKit.UICollectionView * Foundation.NSIndexPath -> bool

Parameters

collectionView
UICollectionView

Collection view managed by this view controller.

indexPath
NSIndexPath

Index path for the affected item.

Returns

Returns true if item should be deselected, false if not.

Attributes

Applies to