UITableView loads several different cells.
Similar to the above image, a rolling view has many upper-right modules. It is not very convenient to use scrollview. If you want to use it, you can actually use collectionview or tableview.
UITableView example
In fact, a tableview loads several different cells and can be determined based on the unique identifier.
Registration:
[_ Tableveiw registerClass: [CustomCell class] forCellReuseIdentifier: @ "cellID"];
[_ Tableveiw registerClass: [CustomCell1 class] forCellReuseIdentifier: @ "cellID1"];
[_ Tableveiw registerClass: [CustomCell2 class] forCellReuseIdentifier: @ "cellID2"];
Load
UITableViewCell * cell = nil;
If (indexPath. section = 0 ){
Cell = [tableView dequeueReusableCellWithIdentifier: @ "cellID"];
CustomCell * newcell = (CustomCell *) cell;
Newcell. label. text = @" 00000 ";
} Else if (indexPath. section = 1 ){
Cell = [tableView dequeueReusableCellWithIdentifier: @ "cellID1"];
} Else {
Cell = [tableView dequeueReusableCellWithIdentifier: @ "cellID2"];
}
Return cell;