This is how my unpopulated UITableView looks like:
https://www.dropbox.com/s/0jkbct6bq5ty3r8/photo%201.PNG?dl=0
And if i scroll enough this happens with the footer:
https://www.dropbox.com/s/cq4w1wcupxtad57/photo%202.PNG?dl=0
As you can see the footer is following up as i scroll down. When the tableview gets populated with more cells the amount of scrolling is obviously reduced which makes this occur more often. Is there anyway to keep it at as it looks in the first picture all the time?
the code i use for the footer looks like this:
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
UIView* view = [UIView new];
[view setBackgroundColor:[UIColor grayColor]];
return view;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
return 1.0f;
}