Dynamic UITableView height

后端 未结 11 1618
無奈伤痛
無奈伤痛 2020-12-29 09:47

I would like to set the UITableView to match the height for all the contents in the table view.

This is my storyboard

The problem with this is the t

11条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 10:06

    In this type of case add your bottom imageView(red) in a table footer view.

    To add footer view in UITableView you can use:

    tableViewObj.tableFooterView = footerViewObj;
    

提交回复
热议问题