I have a footerview in my uitableview that has a uitextfield in it. The problem is that when the user clicks on the uitextfield it pushes up the uitextfield(which is ok) but then there is an awkward gap between the footerview and the keyboard. Here is a picture to illustrate what I'm talking about.
Any reason why this is happening?
Here is the relevant code:
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 50;
}
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
MSChatFooter *footer = [[[NSBundle mainBundle] loadNibNamed:@"MSChatFooter" owner:self options:nil] firstObject];
return footer;
}