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
Without registration dequeueReusableHeaderFooterView() and dequeueReusableCell() don't work. If you register then the two dequeue methods will never fail. You don't need that backup code in viewForHeaderInSection and cellForRowAtIndexPath if you register first.
The text was updated successfully, but these errors were encountered:
The view controller should register the cell and header classes in viewDidLoad()
tableView.register(CollapsibleTableViewHeader.self, forHeaderFooterViewReuseIdentifier: "header")
tableView.register(CollapsibleTableViewCell.self, forCellReuseIdentifier: "cell")
Without registration dequeueReusableHeaderFooterView() and dequeueReusableCell() don't work. If you register then the two dequeue methods will never fail. You don't need that backup code in viewForHeaderInSection and cellForRowAtIndexPath if you register first.
The text was updated successfully, but these errors were encountered: