[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.3];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
// beginUpdates and endUpdates trigger the animation of our cells
[self.myTableView beginUpdates];
[self.headerView setFrame:CGRectMake(self.headerView.frame.origin.x, self.headerView.frame.origin.y, self.headerView.frame.size.width, self.detailLabel.frame.origin.y+self.detailLabel.frame.size.height+10)];
[self.myTableView setTableHeaderView:self.headerView];
[self.myTableView endUpdates];
[UIView commitAnimations];
[self.myTableView.tableHeaderView setFrame:self.headerView.frame];