UICollectionView.CellForItem(NSIndexPath) 方法

定义

返回 UICollectionViewCell 指定 NSIndexPath处的 。

[Foundation.Export("cellForItemAtIndexPath:")]
public virtual UIKit.UICollectionViewCell CellForItem (Foundation.NSIndexPath indexPath);
abstract member CellForItem : Foundation.NSIndexPath -> UIKit.UICollectionViewCell
override this.CellForItem : Foundation.NSIndexPath -> UIKit.UICollectionViewCell

参数

indexPath
NSIndexPath

指示 NSIndexPath 所需 UICollectionViewCell的节和项索引的 。

返回

对应于 UICollectionViewCell 参数的 indexPath 。 如果没有相应的 UICollectionViewCell,则函数返回 null

属性

适用于