I'm curious as to how/when the system determines whether to default UITableView contentInsets to 64.
I've got a UITableView placed in a regular UIViewController, which itself sits in a UINavigationController with a translucent nav bar. The tableview's auto layout tells it to fill the view of the UIViewController.
Now, by default, the tableview will have a top content inset of 64.f. I can prevent that behavior by manually setting the content inset, or using edgesForExtendedLayout on the UIViewController. For now, I'm leaving it alone.
However, if I insert a subview between self.view and the tableview, the default top inset of the tableview becomes 0.0f, and I have to manually adjust it back to 64.f.
My question is this: How does the view controller determine whether to change the inset or not? Does it actually just check if self.view's top subview is a tableview/scrollview?