How do I set and reuse a color variable in Obj C? I am trying to set a reusable color value as in this question:
Change background color with a variable iOS
but am unsuccessful.
UIColor *lightGrayHeader = [UIColor colorWithRed:246/255.f green:239/255.f blue:239/255.f alpha:1.0];
self.view.backgroundColor = [UIColor lightGrayHeader];
Returns an error: "Initializer element is not a compile-time constant."
Thanks for your ideas!