Closed quangpc-zz closed 9 years ago
Finally I found the answer from TYLShyNavBar:
(void)scrollViewDidScroll:(UIScrollView *)sender {
UIEdgeInsets inset = self.tableView.contentInset; inset.top = MAX(MIN(self.view.frame.size.height + 20, self.navigationController.navigationBar.frame.origin.y +self.navigationController.navigationBar.frame.size.height ), 20); [_tableView setContentInset: inset];
} not sure it's best solution but it is currently working for me
I added header view for section of TableView but the headerView is not on top when navigation bar is hidden.