I'm creating headerview for collectionview cells using rxswift.While run the code it crashes iOS swift
Problem:
I'm creating header view for collectionview cells using rxswift.While run the code it crashes.It show the below error.
2023-10-03 16:00:45.470422+0530 myapp[13244:2067307] *** Terminating app due to uncaught exception '
But i had registered the cell before using as like below.
self.mycollectionview.register(HeaderCell.nib, forCellWithReuseIdentifier: HeaderCell.identifier)
How to solve that?
Solution:
The problem was you are register the cell as forCellWithReuseIdentifier but you have to register the cell as like below.Then only it will works.
mycollectionview.register(Heade
Comments
Post a Comment