I have simple ViewController with UITableView. In first time (viewDidLoad) table load good (without top margin). In didSelectRowAtIndexPath I push new View Controller in navigationController stack and after back action i have top margin in UITableView. It happens only in first time !!! If i use
override func viewDidAppear(animated: Bool) {
mainTable.contentInset = UIEdgeInsetsZero;
}
it fixed but i see animation and it not good ! In viewWillAppear it's not work at all
Thanks....