Hide UITableView search bar by default when in a navigation controller

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

    I also have the same problem like yours. The following code solved my problem.Please add the code in you viewDidLoad() :

    self.edgesForExtendedLayout = UIRectEdgeNone;
    

    N:B: I used autoLayout in my project.

提交回复
热议问题