Hide UITableView search bar by default when in a navigation controller

前端 未结 5 979
萌比男神i
萌比男神i 2021-02-03 14:05

I\'ve read multiple posts on this but it\'s not working properly for me. I\'m using the latest 4.2 SDK.

The code I have is

self.tableView.contentOffset =         


        
5条回答
  •  醉话见心
    2021-02-03 14:52

    For others still looking for an updated solution, you can check out my answer over here.

    Basically you need to update the contentOffset the first time viewDidLayoutSubviews is called.

提交回复
热议问题