title: UITableView Not Scrolling after contentInset
body: <p>i'm working on a project where i have a tableview and a uitextfield.</p>
  
  <p>I'm applying the following method when the uitextfield gain/loose the focus : </p>
  
  <pre><code>-(void)enableInset {
  
  CGFloat offSet = -30.0f;
  UIEdgeInsets inset = UIEdgeInsetsMake(placesMapView.frame.size.height - offSet, 0.0f, 0.0f, 00.f);
  
  // Updating the tableView position.
  placesTableView.contentInset = inset;
  placesTableView.contentOffset = CGPointMake(0.0f, -(placesMapView.frame.size.height - offSet));
  placesTableView.scrollIndicatorInsets = inset;
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>- (void)disableInset {
  CGFloat offset = self.navigationController.navigationBar.frame.size.height  + [UIApplication sharedApplication].statusBarFrame.size.height;
  UIEdgeInsets inset = UIEdgeInsetsMake(offset, 0.0f, 0.0f, 00.f);
  placesTableView.contentInset = inset;
  placesTableView.contentOffset = CGPointMake(0.0f, -offset);
  placesTableView.scrollIndicatorInsets = inset;
  }
  </code></pre>
  
  <p>The enableInset method is called in viewDidLayoutSubviews.
  then when i call disableInset and enableInset, the UITableView can not be scrolled anymore.</p>
  
  <p>What did i did wrong ? Any idea where i can look for some answer ?</p>
  
  <p>EDIT :
  If it can help, i added the project on github :</p>
  
  <p><a href="https://github.com/Loadex/PlaceViewer" rel="nofollow">https://github.com/Loadex/PlaceViewer</a></p>
  
  <p>To re-produce the bug : 
  Scroll the list, tap on the search bar, hit cancel, try to scroll again the list.</p>
  
  <p>Weirdly click on the filter button, when the UIActionSheet is dismissed, the scroll is working again.</p>