views:

41

answers:

1

Hello

We use in our application cells in a grouped tableview as buttons. Therefore we set a backgroundimage to look the cells like buttons. We used the following code:

cell.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg_gradient_mainmenu_2.png"]];
cell.textLabel.textColor = [UIColor whiteColor];
cell.textLabel.highlightedTextColor = [UIColor whiteColor];

which looks like thisalt text

The weird thing now is that it works for just some devices with different OS Systems. It definitly doesn't work on new iPhones 4.

Does anyone has a clue how solve that problem?

A: 

for iphone 4 you can set the backgroundView. The group table behaves erratically while working with table cell background.

karim