title: How to insert a new Row in bottom of the UITableView Swift
body: <p>I use</p>
  
  <pre><code>func insertRowsAtIndexPaths(indexPaths: [NSIndexPath],
  withRowAnimation animation: UITableViewRowAnimation)
  </code></pre>
  
  <p>method to insert a new Row in a table. But it appears from Top of the    <code>UITableView</code> (by default).</p>
  
  <p>I couldn't find any option to insert rows from the bottom of the table, like on screenshot: </p>
  
  <p><a href="https://i.stack.imgur.com/Jbsnv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Jbsnv.png" alt="New Rows from Bottom"></a></p>
  
  <p>I tried use the <code>UIEdgeInsetsMake</code>:</p>
  
  <pre><code>self.tableView.contentInset = UIEdgeInsetsMake(tableView.frame.height,0,0,0)
  </code></pre>
  
  <p>but it broke all design when I scroll the table.</p>
  
  <p>My question is: how to insert a new rows from bottom of the table?</p>
  
  <p><strong>UPD:</strong> It should looks like table moves from a keyboard View to NavigationBar when new row is added.</p>
  
  <p><strong>UPD2:</strong> Here is what I want: <a href="http://recordit.co/JoR7xuvvpG" rel="noreferrer">http://recordit.co/JoR7xuvvpG</a></p>
  
  <p>I did it with the help of </p>
  
  <pre><code>self.tableView.contentInset = UIEdgeInsetsMake(tableView.frame.height,0,0,0)
  </code></pre>
  
  <p>But contentInset adds a big white field above the rows and when I scroll down it hides added rows. Looks like they is hiding under the keyboardView. I want to prevent it.</p>