title: Mixing storyboard prototype cells with auto populating data
body: <p>I have an auto populating <code>UITableView</code> from a <code>NSMutableArray</code>. I need to add a static cell to the top of the table from a prototype I built in storyboard.  What is the correct way of doing this?  </p>
  
  <p>When I just added the prototype to the storyboard editor, it started out by covering up the first cell.  After reloading the data, it would eventually appear under the other cells.</p>
  
  <p>To make "space" for it, I made the table "editable" with the following code -</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
      return self.editing ? wOutputArray.count + 1 : wOutputArray.count;   
  }
  </code></pre>
  
  <p>Now it doesn't cover any cells, but it seems as though it doesn't have a home.  At initial view load it's at the top of the table, then after a few refreshes it eventually falls back to the bottom of the table.</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>I'm reading that you can't mix static cells with dynamic cells, and that the table should be split up into sections.</p>
  
  <p>So here I changed-</p>
  
  <pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableViewB{
      return 2;
  }
  </code></pre>
  
  <p>&amp;</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableViewB numberOfRowsInSection:(NSInteger)section{
      switch(section){
          case 0:
              return  1;
              break;
          case 1:
              return  wOutputArray.count;
              break;
      }
      return 0;
  }
  </code></pre>
  
  <p>But I'm not sure what to do next...  Is this the right direction?</p>