
Hi,
I am developing UITable based iPhone application. I have to add the background image to UITableViewCell. Please tell me how to add UITableViewCell background image.
Thanks

Hi,
Here is the code example of UITableViewCell background using image.
UIView *cellBackView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease]; cellBackView.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"background.png"]]; cell.backgroundView = cellBackView;
Thanks

Hi,
Here is following code to set the selected background color:
UIView *viewSelected = [[[UIView alloc] init] autorelease]; viewSelected.backgroundColor = [UIColor whiteColor]; cell.selectedBackgroundView = viewSelected;
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.