Edit

Bagikan melalui


UICollectionViewController.GetViewForSupplementaryElement Method

Definition

Returns the UICollectionReusableView for a supplementary view of the specified kind.

[Foundation.Export("collectionView:viewForSupplementaryElementOfKind:atIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UICollectionReusableView GetViewForSupplementaryElement (UIKit.UICollectionView collectionView, Foundation.NSString elementKind, Foundation.NSIndexPath indexPath);
abstract member GetViewForSupplementaryElement : UIKit.UICollectionView * Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionReusableView
override this.GetViewForSupplementaryElement : UIKit.UICollectionView * Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionReusableView

Parameters

collectionView
UICollectionView

Collection view managed by this view controller.

elementKind
NSString

The kind of supplementary view that is to be created.

indexPath
NSIndexPath

Index path for the affected item.

Returns

The UICollectionReusableView for a supplementary view of the specified kind.

Attributes

Applies to