My UIRefreshController is doing something odd. When I pull-down refresh, the tableView headers are displaced.
If I pull-down it looks fine, but if I scroll down the
Try this way to add push view controller.
Create a table view controller and add it as the sub view of existing view controller. Then assign your table view and refresh controllers to tableview controller's properties.
UITableViewController *newTableViewController = [[UITableViewController alloc] init];
newTableViewControler.tableView = ;
= [[UIRefreshControl alloc] init];
[ addTarget:self
action:@selector(refreshTableView:)
forControlEvents:UIControlEventValueChanged];
newTableViewController.refreshControl = _chatListRefreshControl;
[self addChildViewController:newTableViewController];