共用方式為


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 則傳回 ,否則傳回 。

屬性

適用於