Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 39

Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
01/07/15 11:01 AM (9 years ago)

How to use a Hex color rather than UIColor?

Does anyone know how i can use a specific Hex color in code rather than using the UIColor options? At present i have the following code: label.textColor = [UIColor purpleColor]; but i want to declare #FFFFFF for example Thanks Steve
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/07/15 06:06 PM (9 years ago)
have you tried something like this: self.window.tintColor = [BT_color getColorFromHexString:@"#000000"]; Hope this helps! Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.