This is an extension for UIColor which allows it to use hex.
Written in swift
Just drop UIColorHex.swift to your project folder and it is ready to use.
Usage:
UIColor(hex: "#ffffff") //white
UIColor(hex: "#000000") //black
Pull request is appreciated.