ViewRegistrationInfo
public struct ViewRegistrationInfo : Equatable
Describes the registration information for a cell or supplementary view.
-
The reuse identifier for the view.
Declaration
Swift
public let reuseIdentifier: String -
The registration method for the view.
Declaration
Swift
public let registrationMethod: ViewRegistrationMethod -
Initializes a new
ViewRegistrationInfofor the providedclassType.Note
The class name is used for
reuseIdentifier. TheregistrationMethodis set to.fromClass.Declaration
Swift
public init(classType: AnyClass)Parameters
classTypeThe cell or supplementary view class.
-
Initializes a new
ViewRegistrationInfofor the providedclassType,nibName, andbundle.Note
The class name is used for
reuseIdentifier. TheregistrationMethodis set to.fromNibusing the providednibNameandbundle.Declaration
Swift
public init(classType: AnyClass, nibName: String, bundle: Bundle? = nil)Parameters
classTypeThe cell or supplementary view class.
nibNameThe name of the nib for the view.
bundleThe bundle in which the nib is located. Pass
nilto use the main bundle.
View on GitHub
ViewRegistrationInfo Structure Reference