Skip to content

DinosaurDad/UIColor-ColorWithHex

 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 96.8%
  • Swift 3.2%