I overrided the method viewForHeaderInSection and I realized by default it adds it on top of the UItableView, I would like to send it to the back of the tableView. Any Idea?
Here is my code:
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
UIImageView *imageView = [[UIImageView alloc] initWithImage:districtImage];
imageView.frame = CGRectMake(10,10,300,100);
NSLog(@"districtImage=%@",districtImage);
return imageView;
}
EDIT
Ok I got it to scroll up now:
self.tableView.tableHeaderView = imageView;
my problem now is the header is to big how can I reduce it
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{}
does not seem to take effect.