Szerkesztés

Megosztás a következőn keresztül:


UICollectionView.RegisterNibForSupplementaryView Method

Definition

Overloads

RegisterNibForSupplementaryView(UINib, NSString, NSString)

Specifies the type to be used to populate supplementary views.

RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, NSString)

Specifies the nib to be used for populating the supplementary view.

RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, String)

Registers the Nib file that will be used for UI in supplementary views.

RegisterNibForSupplementaryView(UINib, NSString, NSString)

Specifies the type to be used to populate supplementary views.

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

Parameters

nib
UINib

The UINib to be used to populate the supplementary view.

kind
NSString

The kind of supplementary view being registered (e.g., "UICollectionElementKindSectionHeader").

reuseIdentifier
NSString

A non-empty string to be associated with the nib.

Attributes

Remarks

The UICollectionView maintains a highly-efficient reuse queue for offscreen components. This requires that the UICollectionView be responsible for the lifecycle management of its component views. This method (and related methods such as RegisterNibForCell(UINib, String)) provide the UICollectionView the knowledge of which types it needs to instantiate.

The application developer may pass null as the reuseIdentifier, in which case the nib will be "un-registered" and no longer instantiated. The application developer may pass in a reuseIdentifier previously associated with another nib, in which case the old nib will be "de-registered" and the new nib will be used.

See also

  • <xref:UIKit.UICollectionView.RegisterClassForSupplementaryView>
  • <xref:UIKit.UICollectionView.RegisterNibForCell>
  • <xref:UIKit.UICollectionView.RegisterClassForCell>
  • <xref:UIKit.UICollectionViewLayout.RegisterClassForDecorationView>
  • <xref:UIKit.UICollectionViewLayout.RegisterNibForDecorationView>

Applies to

RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, NSString)

Specifies the nib to be used for populating the supplementary view.

public void RegisterNibForSupplementaryView (UIKit.UINib nib, UIKit.UICollectionElementKindSection section, Foundation.NSString reuseIdentifier);
member this.RegisterNibForSupplementaryView : UIKit.UINib * UIKit.UICollectionElementKindSection * Foundation.NSString -> unit

Parameters

nib
UINib

The UINib to be used to populate the supplementary view.

section
UICollectionElementKindSection

The kind of supplementary view being registered.

reuseIdentifier
NSString

A non-empty string to be associated with the nib.

Remarks

The UICollectionView maintains a highly-efficient reuse queue for offscreen components. This requires that the UICollectionView be responsible for the lifecycle management of its component views. This method (and related methods such as RegisterNibForCell(UINib, String)) provide the UICollectionView the knowledge of which types it needs to instantiate.

The application developer may pass null as the reuseIdentifier, in which case the nib will be "un-registered" and no longer instantiated. The application developer may pass in a reuseIdentifier previously associated with another nib, in which case the old nib will be "de-registered" and the new nib will be used.

Applies to

RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, String)

Registers the Nib file that will be used for UI in supplementary views.

public void RegisterNibForSupplementaryView (UIKit.UINib nib, UIKit.UICollectionElementKindSection section, string reuseIdentifier);
member this.RegisterNibForSupplementaryView : UIKit.UINib * UIKit.UICollectionElementKindSection * string -> unit

Parameters

nib
UINib
reuseIdentifier
String

Applies to