Changing text color using my own color in iphone

I want to change all my text color with my own colorcode value(#003366).

I know this about it-

myLabel.textColor = [UIColor whiteColor];

but instead of white color I want #003366 (blue)

How to do it in iphone?


//would be pale red
myLabel.textColor = [UIColor colorWithRed:1.0f green:0.8f blue:0.8f alpha:1.0f];

Define this code as macro,

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

and then

myLabel.textColor = UIColorFromRGB(0x003366);

Need Your Help

jar file in linked resources of eclipse indigo give "Failed to load Main-Class manifest attribute from <jar file path>"

java environment-variables eclipse-indigo

I created a path variable in eclipse and link a jar file using this path. Then adding this file to the build path. On my PC it's working fine and but it is giving following error on others PC's.

Nuget package the depends on 1 of N Nuget packages? nuget nuget-package

I am working on an open source project MvcSiteMapProvider getting it ready for deployment. It is a library package that supports MVC2, MVC3, and MVC4 as well as .NET 3.5, .NET 4.0, and .NET 4.5.