Section Headers in UITableView when inset of tableview is changed

前端 未结 4 2012
刺人心
刺人心 2021-02-01 07:18

I have implemented a \"Pull to refresh\" in my tableView like the iPhone app Twitter or Facebook.
My tableView has sections with head views. When the tableView is in \"Refre

4条回答
  •  生来不讨喜
    2021-02-01 07:58

    When doing this, I usually use the table-wide header in UITableView instead:

    @property(nonatomic, retain) UIView *tableHeaderView
    

    ...instead of contentInsets. There were a lot of bugs with contentInsets all the way back to iOS 2.x days, and I'm not sure they've all been fixed. Is there a reason you can't use a table header?

提交回复
热议问题