UITableViewCell customization, uitableviewcell
UITableViewCell Customization
Effect
Features
1. You can add different tableviewcells and customize different cell styles;
2. The cell height can be dynamically changed;
3. You can place the positions of your cells at will (in the front and back order );
Usage
1. After downloading the source code, find the files in these two folders (Tool class (3) + cell related class (2) and import them to your project.
2. All cells inherit CustomTableViewCell and implement the parent class methods respectively (refer to cell coding in different cell customization )).
3. Refer to the method in ViewController.
Source code
Github: https://github.com/makingitbest/TableViewCell
Details
1. inherit the cell of CustomTableViewCell and implement the interface layout and value passing method of the parent class.
2. register the cell. It is similar to normal. The adapters that store data must be initialized.