user241178
user241178

Reputation: 271

iPhone Table Background Color Problem

I have these two lines of code:

Line 1: self.tableView.backgroundColor = [[UIColor alloc] initWithRed:((float) 102.0f) green:((float) 204.0f) blue:((float) 255.0f) alpha:1.0f];

Line 2: self.tableView.backgroundColor = [UIColor orangeColor];

Line 1 does not change background, however, line two does! What's going on here? Please tell me :(

Upvotes: 0

Views: 487

Answers (1)

Nnp
Nnp

Reputation: 1853

try doing this

[UIColor colorWithRed:0.533 green:0.670 blue:0.247 alpha:1.0];

Upvotes: 4

Related Questions