Steps to create a cell
1. Create a new class that inherits from Uitabelviewcell
2. Overriding Initwithstyle:reuseidentifier: Methods
Add all the child controls that need to be displayed (you don't need to set the child control's data and frame, and the child controls are added to the Contentview)
Make child controls one-time property settings (some properties need to be set once, such as fonts \ fixed pictures)
3.2 Models available
Data model: Storing text data \ Picture data
Frame model: The height of the Frame\cell of the data model \ All child controls (optimizes performance)
4.cell has a frame model (don't have a data model directly)
5. Override the setter method of the Frame model property: Set the child control's display data and frame in this method
The initialization of the 6.FRAME model data has been done in a lazy manner (each cell corresponds to the frame model data is loaded only once)
IOS custom cell (cell height inconsistency) through code (optimized for performance)