iPhone UITableView with a header area

前端 未结 8 958
礼貌的吻别
礼貌的吻别 2020-12-23 20:26

I have a view that was created with all of the default UITableView stuff, but now I need to add a header area above where the UITableView is (so th

8条回答
  •  感动是毒
    2020-12-23 20:36

    You will have to embed the UITableView in a UIView alongwith another view (which you are referring to as header section).

    So, the UIView will have 2 subviews. The header view followed by the table view.

    • UIView(parent)
      • UIView (header)
      • UITableView (table)

    Hope this helps.

提交回复
热议问题