title: change uitableviewheader height
body: <p>I have a Storyboard with a UITableView. The tableView gets a tableViewHeader like:</p>
  
  <pre><code>----------------------
  | Button             |
  | Label              |
  ----------------------
  </code></pre>
  
  <p>The button appears only if a condition is met. Also, if the button is clicked the header must be: </p>
  
  <pre><code>----------------------
  | Label              |
  ----------------------
  </code></pre>
  
  <p>I tried lots of things, like:</p>
  
  <pre><code>[UIView animateWithDuration:0.3 delay:0 options: UIViewAnimationCurveEaseOut
                       animations:^{
                           self.tableView.contentOffset = CGPointMake(0, 59);
                       }
                       completion:^(BOOL finished) {
                           if (finished) {
                               self.tableView.contentOffset = CGPointMake(0, 59);
                               self.viewButton.hidden = YES;
                           }
                       }
       ];
  </code></pre>
  
  <p>This works great if I click the button. But once I scroll the table view up, it bounces at 0 and then offset is lost, my table view looks like:</p>
  
  <pre><code>----------------------
  |                    |
  | Label              |
  ----------------------
  </code></pre>
  
  <p>I also tried all kinds of views manipulation and tried reset the tableViewHeader, like:</p>
  
  <pre><code>    CGRect frame = self.tableView.tableHeaderView.frame;
  frame.size.height = 31; 
  self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:frame];
  [self.tableView.tableHeaderView addSubview:self.viewTitle];
  </code></pre>
  
  <p>Getting the result:</p>
  
  <pre><code>----------------------
  |                    |
  |            Label   |
  ----------------------
  </code></pre>
  
  <p>I saw something about changing my UITableViewController to a UIViewController and my problems will be resolved by manipulating the view controller frame, but I have like 10 table view and I don't really have time to make all the changes I need.</p>
  
  <p>Please, can someone help me?</p>