Share via


UICollectionViewSource.ShouldSelectItem(UICollectionView, NSIndexPath) 方法

定义

是否应选择指定 indexPath 中的项。

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

参数

collectionView
UICollectionView

发起请求的集合视图。

indexPath
NSIndexPath

返回

属性

适用于