How to add a footer to a UITableView in Storyboard

后端 未结 3 683
时光取名叫无心
时光取名叫无心 2020-12-04 15:21

I\'m fairly new to iOS development.

I want to add a footer to the table view in a UITableViewController. I\'ve made the view I want to use as the footer

相关标签:
3条回答
  • 2020-12-04 15:40

    You can just drag a view to the bottom area of the tableView. You'll see in the hierarchy that it will be a subview of the tableview. You can then drag subviews such as labels and buttons there, adjust the height, etc.

    0 讨论(0)
  • 2020-12-04 15:44

    Very simple!. dbrajkovic solution but in a graphical way. Just add a view to the table view.That's all!.

    In that example the footer view (Disclaimer View) has two labels ( Llb Disclaimer Title and Lbl Disclaimer Content).

    0 讨论(0)
  • 2020-12-04 15:47

    The above answer worked for me with one twist. I found I couldn't add a footer if the cells filled up the entire height of the table view. Removing a couple of cells allowed me to add the footer, after which I was able to add the cells back.

    0 讨论(0)
提交回复
热议问题