title: Best way to structure view controller with different use cases?
body: <p>I have a <code>UITableViewController</code> that I'm using in a number of different ways: </p>
  
  <ol>
  <li>Display multiple custom cells (let's call these <code>CellX</code>), inside a <code>UIPageViewController</code> parent.</li>
  <li>Display a single <code>CellX</code> cell, with its own navigation bar title.</li>
  <li>Display a different set of custom cells (<code>CellY</code>).</li>
  <li>Display multiple CellX cells but using different data.</li>
  </ol>
  
  <p>At the moment, I have <code>boolean</code> variables set that are set to identify that the <code>UITableViewController</code> is being used in one of the use cases, and have quite a few <code>if</code> statements to control what's happening inside the <code>UITableViewController</code>. However, this seems to be such a bad way of coding, there's got to be better way?</p>