how to set backgroundcolor of UIViewController in iphone ?
+1
A:
In IB, select the View in the view controller and click on the Background color selector or to do it in code:
self.view.backgroundColor = [UIColor redColor];
DyingCactus
2010-04-01 13:03:09
Is it strange that we both picked redColor for our code examples? Heh...
Jasarien
2010-04-01 13:03:55
Yeah, maybe it's because UIColor ends in 'r' and that's the color that pops up when you press r again.
DyingCactus
2010-04-01 13:29:24
A:
when i set the Background Color i see for 2 seconds the old Background ?
Ralf
2010-04-01 14:02:39
This should be asked as a new question instead of an answer. It depends on when and where you are setting the new color. If you set the color in the xib itself, there should be no delay.
DyingCactus
2010-04-01 14:14:23