title: Swift: TableView within Static UITableViewCell
body: <p>I have a <code>UITableViewController</code> with about five different static cells. In one of these cells I'm attempting to load a dynamic <code>UITableView</code></p>
  
  <p>In the interface builder I tagged the main <strong>UITableViewController's</strong> <code>tableView0</code>, then I tagged the dynamic <code>tableView1</code>.</p>
  
  <p>I'm crashing every time I attempt to load the controller. Here is my rough code so far:</p>
  
  <pre><code>override func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
      switch tableView.tag {
      case 0:
          return 2;
  
      case 1:
          return 1;
  
  
      default:
          break;
  
      }
      return 0
  }
  
  override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      switch tableView.tag {
      case 0:
          return 5;
  
      case 1:
          return 2;
  
  
      default:
          break;
  
      }
      return 0
  
  }
  
  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("ComboInfoCell", forIndexPath: indexPath) as! UITableViewCell
      if tableView.tag == 1 {
  
  
      // Honestly not sure how to configure only the reusablecells, and not affect the static cells
  
  
      }
      return cell
  
  }
  </code></pre>
  
  <p>So I need to know if it's possible to embed dynamic tableviews inside static tableviewcells, and how to do that.</p>