UICollectionViewController.ShouldDeselectItem 方法

定义

是否应取消选择指定的项。

[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

参数

collectionView
UICollectionView

此视图控制器管理的集合视图。

indexPath
NSIndexPath

受影响项的索引路径。

返回

true如果应取消选择项,则返回 ;否则返回 false

属性

适用于