UICollectionViewDelegate_Extensions 类

定义

接口的 IUICollectionViewDelegate 扩展方法,以支持协议中的所有方法 UICollectionViewDelegate

public static class UICollectionViewDelegate_Extensions
type UICollectionViewDelegate_Extensions = class
继承
UICollectionViewDelegate_Extensions

注解

IUICollectionViewDelegate 扩展方法允许开发人员将 接口的实例视为具有原始 UICollectionViewDelegate 协议的所有可选方法。 由于 接口仅包含所需的成员,因此这些扩展方法允许开发人员调用协议的可选成员。

方法

CanFocusItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

中的 indexPath 项是否可以聚焦。

CanPerformAction(IUICollectionViewDelegate, UICollectionView, Selector, NSIndexPath, NSObject)

指定的 indexPath 中的单元格是否支持指定的操作。

CellDisplayingEnded(IUICollectionViewDelegate, UICollectionView, UICollectionViewCell, NSIndexPath)

指示指定 indexPath 处的单元格已被删除。

DidUpdateFocus(IUICollectionViewDelegate, UICollectionView, UICollectionViewFocusUpdateContext, UIFocusAnimationCoordinator)

指示焦点已更改,详见 。context

GetIndexPathForPreferredFocusedView(IUICollectionViewDelegate, UICollectionView)

重写后,允许开发人员指定最初应接收焦点的项。

GetTargetContentOffset(IUICollectionViewDelegate, UICollectionView, CGPoint)

重写后,开发人员可以修改布局和动画更改的内容偏移量。

GetTargetIndexPathForMove(IUICollectionViewDelegate, UICollectionView, NSIndexPath, NSIndexPath)

重写后,允许开发人员修改移动项的最终位置。 (例如,禁止移动到特定 proposedIndexPath.)

ItemDeselected(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指示指定 indexPath 上的单元格已被取消选择。

ItemHighlighted(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指示指定 indexPath 中的单元格已突出显示。

ItemSelected(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指示已选择指定 indexPath 中的单元格。

ItemUnhighlighted(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指示指定 indexPath 上的单元格已取消突出显示。

PerformAction(IUICollectionViewDelegate, UICollectionView, Selector, NSIndexPath, NSObject)

指定 indexPath 中的单元格是否支持指定的“复制”或“粘贴”操作。

ShouldDeselectItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定 indexPath 中的单元格是否应允许自己取消选择。

ShouldHighlightItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定 indexPath 中的单元格是否应允许突出显示自身。

ShouldSelectItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定 indexPath 中的单元格是否允许自己被选中。

ShouldShowMenu(IUICollectionViewDelegate, UICollectionView, NSIndexPath)

指定 indexPath 中的单元格是否应显示“操作”菜单。

ShouldSpringLoadItem(IUICollectionViewDelegate, UICollectionView, NSIndexPath, IUISpringLoadedInteractionContext)

调用的方法,用于指示标识的项是否应在指定上下文中弹载。

ShouldUpdateFocus(IUICollectionViewDelegate, UICollectionView, UICollectionViewFocusUpdateContext)

重写时,允许开发人员阻止 中 context指定的焦点更改。

SupplementaryViewDisplayingEnded(IUICollectionViewDelegate, UICollectionView, UICollectionReusableView, NSString, NSIndexPath)

指示已删除指定 indexPath 处的补充视图。

TransitionLayout(IUICollectionViewDelegate, UICollectionView, UICollectionViewLayout, UICollectionViewLayout)

从指定的 fromLayout 移动到 toLayout 时要使用的 UICollectionViewTransitionLayout。

WillDisplayCell(IUICollectionViewDelegate, UICollectionView, UICollectionViewCell, NSIndexPath)

cell即将显示 。

WillDisplaySupplementaryView(IUICollectionViewDelegate, UICollectionView, UICollectionReusableView, String, NSIndexPath)

即将显示补充 view

适用于