共用方式為


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 回 。

屬性

適用於