How to embed a UITableView in a UIScrollview

后端 未结 6 642
借酒劲吻你
借酒劲吻你 2020-12-05 05:47

How can I do the following in a UIViewController (containing a tableview as a subview)

I initially have a UIViewController showing a preview section (UIView)

6条回答
  •  时光取名叫无心
    2020-12-05 06:06

    You will have to embed your UITableView inside of a UIScrollView that has the size of the screen minus the navigation bar. Set the UIScrollViews background to clearColor to allow your content above the UITableView to remain visible.

提交回复
热议问题