Skip to content

maxxx777/UIColor-colorWithHex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UIColor-colorWithHex

UIColor category for getting colors from hex value

Usage

Just copy files into your project and include UIColor+colorWithHex.h. If you need an UIColor * object with hex value #bacd12 use colorWithHex: method.

UIColor *color = [UIColor colorWithHex:0xbacd12]

For using color with alpha, you can use colorWithHex:withAlpha:

UIColor *color = [UIColor colorWithHex:0xff00ff withAlpha:0.5f]

About

UIColor category for getting colors from hex value

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%