简体   繁体   中英

UITableView Sections are not scrolling to top after ContentInset set

I created a UITableView with ContentInset of 75.

In UITableView , I set a section view with height 30

Now when I scroll the UITableView , section is fixed at 75, not scrolls along with table cells, How can I make it scroll beyond the contentInset along with table cells

Is there any built-in property of UITableView to achieve this or any custom solution for this?

Change your tableview's style form plain to group .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM