Skip to content

Cell Registration

Compare
Choose a tag to compare
@skladek skladek released this 14 Jun 23:00
· 45 commits to develop since this release

The data source now can take a nib or cell class on init. The class or nib will be registered and a reuse ID generated the first time cellForRowAtIndexPath is called. The reuse id is no longer the developer's concern. Unless you want it to be.

Additionally, this release opens up an init method that takes a delegate instead of a nib or cell class. If that init is used, it is your responsibility to register cells yourself. Additionally, you must implement cellForRowAtIndexPath and always return a cell out of that implementation. I think the most likely use case for this is a table view that has multiple cell types.