• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
global UIColor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

global UIColor


  • Subject: global UIColor
  • From: Harry G <email@hidden>
  • Date: Sun, 22 Mar 2009 14:38:39 +0000

I'm setting up my constants in my app, and have come across a problem. I wish to have a standard UIColor to use for all titles in my app but I get the error "error: initializer element is not constant" and for obvious reasons , but my question is: How am I 'supposed' to implement a single global UIColor?

#import "XXConstants.h"

@implementation XXConstants
const NSString *const1 = @"MyString";
const int  const2 = 111;

UIColor * const3 = [UIColor colorWithRed:.11 green:.11 blue:.11 alpha: 1]; //the offender

@end
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: global UIColor
      • From: Dave DeLong <email@hidden>
  • Prev by Date: Re: MacRoman -> UTF8 [solved]
  • Next by Date: Re: global UIColor
  • Previous by thread: Re: Memory leak when setting CALayer name
  • Next by thread: Re: global UIColor
  • Index(es):
    • Date
    • Thread