i am having problems with my background image. How do i make it be a fixed background? Every time i scroll on the table the background image ends and then another image starts (same image of course) .. is there a way to make it so its just one fixed image? heres an example of my code
- (UIView *)tableView

UITableView *)tableView viewForHeaderInSection

NSInteger)section {
NSString *sectionName = nil;
switch (section) {
case 0:
sectionName = [NSString stringWithFormat:@"
example"];
break;
case 1:
sectionName = [NSString stringWithFormat:@"
example"];
break;
case 2:
sectionName = [NSString stringWithFormat:@"
example"];
break;
}
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"
background.png"]];
UILabel *sectionHeader = [[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 40)] autorelease];
sectionHeader.backgroundColor = [UIColor clearColor];
sectionHeader.font = [UIFont boldSystemFontOfSize:18];
sectionHeader.textColor = [UIColor whiteColor];
sectionHeader.text = sectionName;
return sectionHeader;
}
- (CGFloat)tableView

UITableView *)tableView heightForHeaderInSection

NSInteger)section
{
CGFloat height;
switch(section)
{
case 0:
{
height = 25.0;
}
break;
case 1:
{
height = 25.0;
}
break;
case 2:
{
height = 25.0;
}
break;
}
return height;
}
@end