UITableView: the proper way to display a separator for the last cell

后端 未结 14 1089
礼貌的吻别
礼貌的吻别 2020-12-29 02:23

The question is what\'s the right-most way to display a separator in the last cell in a table/section.

Basically this is what I am after.

14条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 03:13

    This worked flawlessly for me to add a separator to the last cell. have fun!

    self.tableView.tableFooterView = [[UIView alloc] init];
    

提交回复
热议问题