views:

138

answers:

1

I would like to create a gradient UITableViewCell background like the default Clock app that comes on the iPhone. I am not exactly sure how to accomplish that. Do I create an image and set it:

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

or is there another/better approach?

+1  A: 

See this tutorial/code by Matt Coneybeare

Michael Kessler