title: ContentInsets doesn't work for UITableView
body: <p>I have a text box in a TableView and when the user selects a switch it appears ( becomes visible) and a keyboard pops up, and when the user turns off the switch the TextBox disappears and keyboard hides. During the time when the keyboard appears and disappears I want to shift the tableView slightly up and then back to original position. Here is the code </p>
  
  <pre><code>-(IBAction)actionSwitch:(id)sender
  {
  isSearchTerm = [switchSearchTerm isOn];
  [self.tableView reloadData];
  if(isSearchTerm == YES)
  {
      [txtSearchTerm becomeFirstResponder];
      floatBottom = self.tableView.contentInset.bottom;
  
      self.tableView.contentInset=UIEdgeInsetsMake(0,0,200,0);
      [self.tableView scrollToRowAtIndexPath:[self.tableView indexPathForSelectedRow] atScrollPosition:UITableViewScrollPositionTop animated:YES];
  }
  else
  {
      [txtSearchTerm resignFirstResponder];
      self.tableView.contentInset=UIEdgeInsetsMake(0,0,floatBottom,0);
      [self.tableView scrollToRowAtIndexPath:[self.tableView indexPathForSelectedRow] atScrollPosition:UITableViewScrollPositionBottom animated:YES];
  }
  }
  </code></pre>
  
  <p>The else part doesn't bring the tableview back to its original position, please help.</p>