UICollectionViewController.ShouldDeselectItem 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
是否应取消选择指定的项。
[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
。
- 属性