it is as simple as the implementation:
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return CGFloat(#your desired size#)
}
just use the / case switch in this function and work with indexPath.row. You can also use UITableViewAutomaticDimensionto automatically calibrate
EDIT:
, . Rikh , , .
, , , .
:
1:
2 , ( - type1, - type2).
if switch/case , , (, 88 , - 44 ):
return indexPath.section == 0 ? CGFloat(88.0) : CGFloat(44.0)
2:
- , - .
, , viewDidLoad tableView.estimatedRowHeight = CGFloat(44.0), RowHeight . :
return indexPath.section == 0 ? CGFloat(88.0) : UITableViewAutomaticDimension
3:
, , . , . , , .
viewDidLoad ( 44 ):
tableView.rowHeight = UITableViewAutomaticDimension
tableView.estimatedRowHeight = CGFloat(44.0)
, , . : , "detail" - , , , , "detail": ( > =) 21, ( " " ), "title", , 0, , , , " ". .
P.S.: , , , "title" . TableView , , " " " " , (CHCR)