Hello - wonder if any of you can help me with the following code:-
I get an "No visible interface for UIImage declares the selector setBackgroundImage ..." - but I cant see why ? thanks
regards
Kaps
Code:
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell.textLabel.text = self.characters[indexPath.row];
if (cell.accessoryView ==nil)
{
UIImage *buttonUpImage = [UIImage imageNamed:@"button_up.png"];
UIImage *buttonDownImage = [UIImage imageNamed:@"button_down.png"];
UIImage *button= [UIButton buttonWithType:UIButtonTypeCustom];
[button setBackgroundImage:buttonUpImage forState:UIControlStateNormal ];
[COLOR="SandyBrown"] [button setBackgroundImage:buttonDownImage forState:UIControlStateHighlighted];[/COLOR]
}
I get an "No visible interface for UIImage declares the selector setBackgroundImage ..." - but I cant see why ? thanks
regards
Kaps