How to create padding(spacing) between rows in tablview

后端 未结 5 767
情深已故
情深已故 2020-12-15 12:21

This isn\'t a duplicate I read the other questions regarding this and none of them gave me what i needed , I\'m creating a table view with custom cell and the style is group

5条回答
  •  萌比男神i
    2020-12-15 12:53

    1.First you can Increase heightForRowAtIndexPath size

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
        return 150;
    }
    
    1. Then add custom view on tableViewCell. then set view.frame according padding you want.

提交回复
热议问题