1. Create a new class that inherits from UITableViewCell
2. Overriding Initwithstyle:reuseidentifier: Methods
Ø Add all the child controls that need to be displayed (you do not need to set the child control's data and frame, the child controls to add to the Contentview) O make the child controls one-time property settings (some properties only need to be set once, such as fonts \ fixed pictures)
3.2 Models available
Ø Data Model: Storing text data \ Picture Data øframe Model: Frame\cell height of the data model \ All child controls 4.cell owns 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--UITableViewCell--Customizing cells by code (cell height inconsistency)