UITableView contentOffSet is not working properly

前端 未结 15 1783
滥情空心
滥情空心 2020-12-14 01:48

In viewWillAppear, I have added UISearchBar as my headerview of UITableView. When view loads, I hides UISearchbar under <

15条回答
  •  無奈伤痛
    2020-12-14 02:10

    self.tableView.contentInset = UIEdgeInsetsMake(self.navigationController.navigationBar.frame.size.height -80, 0, 0, 0);
    

提交回复
热议问题