UICollectionView.RegisterNibForSupplementaryView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| RegisterNibForSupplementaryView(UINib, NSString, NSString) | |
| 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)
[Foundation.Export("registerNib:forSupplementaryViewOfKind:withReuseIdentifier:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void RegisterNibForSupplementaryView(UIKit.UINib? nib, Foundation.NSString kind, Foundation.NSString reuseIdentifier);
[<Foundation.Export("registerNib:forSupplementaryViewOfKind:withReuseIdentifier:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RegisterNibForSupplementaryView : UIKit.UINib * Foundation.NSString * Foundation.NSString -> unit
override this.RegisterNibForSupplementaryView : UIKit.UINib * Foundation.NSString * Foundation.NSString -> unit
Parameters
- nib
- UINib
- kind
- NSString
- reuseIdentifier
- NSString
- Attributes
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
- 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
- section
- UICollectionElementKindSection
- reuseIdentifier
- String