I want to create an Iphone application using Grouped Table View. I created the Grouped Table View. My Grouped Table View having the three section. I want to add different images as background for each section in grouped table view.
If i use the following code in each section, the total view displayed in same image.
NSString *backgroundPath = [[NSBundle mainBundle] pathForResource:@"background" ofType:@"jpg"];
UIImage *backgroundImage = [UIImage imageWithContentsOfFile:backgroundPath];
UIColor *backgroundColor = [[UIColor alloc] initWithPatternImage:backgroundImage];
tableView.backgroundColor = backgroundColor;
[backgroundColor release];
If anybody known the solution, please help me.
Thanks.