Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 725 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 725 Bytes

UIColor+ColorWithHex

UIColor+ColorWithHex was inspired by the lack of hexadecimal colour integration of iOS.

Methods

    • (UIColor *)colorWithHex:(UInt32)hexadecimal;
    • (UIColor *)colorWithHexString:(NSString *)hexadecimal;
    • (UIColor *)colorWithAlphaHex:(UInt32)hexadecimal;
    • (UIColor *)colorWithAlphaHexString:(NSString *)hexadecimal;
    • (NSString *)hexStringFromColor: (UIColor *)color;
    • (UIColor *)randomColor;
    • (UIColor *)colorWithHexa:(NSString *)hexadecimal;

Install

Just copy the UIColor+ColorWithHex.h and UIColor+ColorWithHex.m files to your project and #import the header file (UIColor+ColorWithHex.h)