Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eugenehp/uicolorhexcolor
Easily create UIColor objects from hex codes.
https://github.com/eugenehp/uicolorhexcolor
Last synced: 3 days ago
JSON representation
Easily create UIColor objects from hex codes.
- Host: GitHub
- URL: https://github.com/eugenehp/uicolorhexcolor
- Owner: eugenehp
- License: mit
- Created: 2014-02-13T18:41:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-02-11T14:42:15.000Z (almost 11 years ago)
- Last Synced: 2023-04-10T05:52:17.634Z (over 1 year ago)
- Language: Objective-C
- Size: 73.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
UIColorHexColor
===============Easily create UIColor objects from hex codes.
## Usage
Simply import `UIColor+HexColor.h` in your implementation file and just use the `colorFromHex` method.
```objc
#import "UIColor+HexColor.h"// ...
UIColor *darkRedColor = [UIColor colorFromHex:0x990000];
```You can also import the category from inside your `.pch` file so you can use `colorFromHex:` from any file in your binary.
```objc
#ifdef __OBJC__
#import
#import
#import "UIColor+HexColor.h"
#endif
```## License
`UIColorHexColor` is distributed with the MIT License.