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
ViewRegistrationInfo
for the providedclassType
.Note
The class name is used for
reuseIdentifier
. TheregistrationMethod
is set to.fromClass
.Declaration
Swift
public init(classType: AnyClass)
Parameters
classType
The cell or supplementary view class.
-
Initializes a new
ViewRegistrationInfo
for the providedclassType
,nibName
, andbundle
.Note
The class name is used for
reuseIdentifier
. TheregistrationMethod
is set to.fromNib
using the providednibName
andbundle
.Declaration
Swift
public init(classType: AnyClass, nibName: String, bundle: Bundle? = nil)
Parameters
classType
The cell or supplementary view class.
nibName
The name of the nib for the view.
bundle
The bundle in which the nib is located. Pass
nil
to use the main bundle.