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
How to custom tableView datasource and delegate method? (Cases where the component does not include functionality)
How to use functions that are not implemented in the listComponent and cause an error when overriding them.
The guide and snippet will be based on creating a list of users.
Guide & Snippet
For example, if you want to override the numberOfSections method of a ListComponent, adding the override keyword will result in an error because the method is not implemented in the ListComponent.
So, if you implement it without the override keyword, you can use the numberOfSections method.
Similarly, you can implement the datasource and delegate functions of tableView and collectionView in the following ways
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Guide & Snippet
numberOfSections
method of a ListComponent, adding the override keyword will result in an error because the method is not implemented in the ListComponent.numberOfSections
method.SBUModuleSet
.Beta Was this translation helpful? Give feedback.
All reactions