title: Making UITableView scroll to right location when using custom keyboard
body: <p>I have a UITableView and I need to use a custom keyboard with it and, for a few reasons, I can't use it as an inputView.  So I am having a my keyboard view appear as a subview.  Its height is 260.  I want the table view to scroll so that the selected cell always has a y-position between 0 and 260.  Is this possible?  Here is what I am currently trying... (this is in the keyboard class)</p>
  
  <pre><code>-(void)showForCellAtIndexPath:(NSIndexPath*)indexPath{
  [UIView beginAnimations:nil context:NULL];
  self.view.frame = CGRectMake(0.0,220.0,320.0,260.0);
  delegate.tableView.contentInset = UIEdgeInsetsMake(0.0,0.0,260.0,0.0);
  delegate.tableView.scrollIndicatorInsets = delegate.tableView.contentInset;
  delegate.view.frame = CGRectMake(0.0,-210.0, delegate.view.frame.size.width,delegate.view.frame.size.height);
  [UIView commitAnimations];
  [delegate.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES];
  </code></pre>
  
  <p>}</p>
  
  <p>I would love your help.  Thanks!</p>