UIKit.UICollectionView.RegisterNibForCell Method
Specifies the type to be used to populate cells.

Syntax

[Foundation.Export("registerNib:forCellWithReuseIdentifier:")]
public virtual void RegisterNibForCell (UINib nib, Foundation.NSString reuseIdentifier)

See Also

UICollectionView.RegisterClassForSupplementaryView
UICollectionView.RegisterClassForCell
UICollectionView.RegisterNibForSupplementaryView
UICollectionViewLayout.RegisterClassForDecorationView
UICollectionViewLayout.RegisterNibForDecorationView

Parameters

nib
The UIKit.UINib to be used to populate cells.
reuseIdentifier
A non-empty string to be associated with the nib.

Remarks

The UIKit.UICollectionView maintains a highly-efficient reuse queue for offscreen components. This requires that the UIKit.UICollectionView be responsible for the lifecycle management of its component views. This method (and related methods such as UICollectionView.RegisterClassForSupplementaryView) provide the UIKit.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.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0