Add different image as background in each section in grouped table view in iphone applications -


I want to create an Iphone application using the group view grouped. I have created the grouped table view. My grouped table view has three sections. I want to add different images as the backdrop of each section in the grouped table view.

If I use the following code in each section, then total views displayed in the same picture.

  NSString * backgroundPath = [[NSBundle mainBundle] pathForResource: @ "background" ofType: @ "jpg"]; UIImage * backgroundImage = [UIImage imageWithContentsOfFile: pageview]; UIColor * backgroundColor = [[UIColor alloc] initWithPatternImage: background image]; TableView.backgroundColor = backgroundColor; [Background Release];  

If anybody knows the solution, please help me.

Thank you.

Change the ... and ... x with those images you want to use. Add some more or remove some case s to get the correct number of sections.


Comments