I am trying to set the background color of a UIView to a custom color, without much success!
I can set it to a standard color like this...
But, when I try to set a custom color, it defaults to white!
The example below should be displayed as pale blue
I could add a blank image, with the custom color, and add that, but that is affecting some of my animations then...
Am I using the right method?
Any help would be really appreciated...
I can set it to a standard color like this...
Code:
[self setBackgroundColor:[UIColor lightGrayColor]];
But, when I try to set a custom color, it defaults to white!
The example below should be displayed as pale blue
Code:
[self setBackgroundColor:[[UIColor alloc] initWithRed:134 green:166 blue:228 alpha:1.0]];
I could add a blank image, with the custom color, and add that, but that is affecting some of my animations then...
Am I using the right method?
Any help would be really appreciated...