iphone - How to set a gradient UITableViewCell background? -


I would like to create a gradient UITableViewCell background such as the default clock app that comes on iPhone. I'm not sure how to complete it. Do I create an image and set it to:

  cell.contentView.backgroundColor = [UIColor alloc] initWithPatternImage: [UIImage imageNamed: @ "background.png"]];  

Or is there any other / better approach?

see


Comments