One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
extension UIColor | |
{ | |
static func colorFromHexaString(hexa:String) -> UIColor | |
{ | |
var cString:String = hexa.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()).uppercaseString | |
if (cString.hasPrefix("#")) | |
{ | |
cString = (cString as NSString).substringFromIndex(1) | |
} |