iOS 12 wrong navigation bar height
2
I'm working on an iPad app in landscape orientation. There is a navigation bar at the top without a status bar, and I want to line up a UITableView such that the top of the table is at the same y coordinate as the bottom of the navigation bar. Naturally, I do the following in viewDidLoad : MyTableView* table = [[MyTableView alloc] init]; table.frame = CGRectMake(someX, navBar.frame.size.height, someWidth, someHeight); [self.view addSubview:table]; At this point, navBar.frame.size.height returns 44. This is strange, because when I run the app, I see that my table overlaps the bottom of the navigation bar by a few points. I do some investigation, and find out that the navigation bar is actually drawing with a height of 50 points. I try to think what could be wrong, and realize that perhaps I'm doing th...