Hide UITableView search bar by default when in a navigation controller

前端 未结 5 980
萌比男神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:40

    self.tableView.contentOffset = CGPointMake(0.0, 44.0);
    

    The above code does in fact work but it needs to run after the UITableView has finished creating all of its cells. I guess thats another question though.

提交回复
热议问题