共用方式為


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

傳回

屬性

適用於