UICollectionViewLayout.RegisterNibForDecorationView(UINib, NSString) UICollectionViewLayout.RegisterNibForDecorationView(UINib, NSString) Method

Definition

Registers the UINib for use as a template for decoration views.

[Foundation.Export("registerNib:forDecorationViewOfKind:")]
public virtual void RegisterNibForDecorationView (UIKit.UINib nib, Foundation.NSString kind);
abstract member RegisterNibForDecorationView : UIKit.UINib * Foundation.NSString -> unit
override this.RegisterNibForDecorationView : UIKit.UINib * Foundation.NSString -> unit

Parameters

nib
UINib UINib

The object containing the cell definition, the nib file should contain a single UICollectionReusableView object.

This parameter can be null.

kind
NSString NSString

The element kind for which the registered type will be used.

Applies to