You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,11 +131,17 @@ final class NibBasedCollectionViewCell: UICollectionViewCell, NibReusable {
131
131
```
132
132
</details>
133
133
134
-
## 2. Register your cells
134
+
## 2. Either enable AutoRegistering or manually register your cells
135
+
In order to have your cells automatically registered to a TableView/CollectionView when they are first used, simply add conformance to the `AutoRegistering` protocol.
If you've prototyped your cell in a Storyboard, there is no need to conform to 'AutoRegistering' or manually register, as this is done automatically by the Storyboard.
135
142
136
-
Unless you've prototyped your cell in a Storyboard, you'll have to register the cell class or Nib by code.
137
143
138
-
To do this, instead of calling `registerClass(…)`or `registerNib(…)` using a String-based `reuseIdentifier`, just call:
144
+
Alternatively you will have to register the cell class or Nib by code. To do this, just call:
0 commit comments