How to make UITable header stick to the top of the screen when using Storyboards?

后端 未结 3 1554
感情败类
感情败类 2020-12-31 20:18

I\'ve made header using this post: Table Header Views in StoryBoards

But i am unable to make header stick (fix) to the top of the screen while scrolling.

How

3条回答
  •  渐次进展
    2020-12-31 21:20

    I think it's better for you to use a UIViewController, instead of a UITableViewController in the storyboard, to achieve this. Just put a header in the top of the view, in the storyboard, and put a UITableView under the header.

提交回复
热议问题