Поделиться через


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.

Атрибуты

Применяется к