title: Automatically adjust content insets for views with custom a tab bar
body: <p>I created a custom tab bar controller. It works very similar to <code>UITabBarController</code> but with a more advanced layout for the <code>UITabBar</code>.</p>
  
  <p>How do I adjust the bottom content insets for views that appear in my custom tab bar controller? For instance if I show a <code>UITableView</code> in my custom tab bar controller I can manually adjust the content insets like this.</p>
  
  <pre><code>self.tableView.contentInset = UIEdgeInsetsMake(0, 0, 49, 0);
  self.tableView.scrollIndicatorInsets = UIEdgeInsetsMake(0, 0, 49, 0);
  </code></pre>
  
  <p>However the problem gets more complicated if I push another view onto this table view like a collection view. Is there a way to get these views to automatically adjust their content insets like they do in the default <code>UITabBarController</code> implementation?</p>