-
Notifications
You must be signed in to change notification settings - Fork 0
PopeyeDevelopment/UIColor-extensions
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
UIColor+extensions This project adds a new class category to UIColor to extend the class with more methods that will allow the use of setting hex string for color and setting gradient using color or image, also introduces some more color name options. The class that we are interested in is UIColor+extensions.h the rest of the project is just a demo to show how to use but it is very simple You can use it like [[self view] setBackgroundColor:[UIColor colorWithHex:@"FFF000"]]; // No need to use '#' but you can if you wish. + (UIColor *)colorWithHex:(NSString *)hexStr; + (UIColor *)colorWithHex:(NSString *)hexStr alpha:(CGFloat)alpha; + (UIColor *)colorWithGradientColorForTop:(id)topClr bottom:(id)bottomClr frame:(CGRect)frame; + (UIImage *)colorWithGradientImageForTop:(id)topClr bottom:(id)bottomClr frame:(CGRect)frame; + (UIColor *)auburnColor; + (UIColor *)awesomeColor; + (UIColor *)ashColor; + (UIColor *)beigeColor; + (UIColor *)blondColor; + (UIColor *)blushColor; + (UIColor *)boneColor; + (UIColor *)bubbleGumColor; + (UIColor *)chocolateColor; + (UIColor *)champagneColor; + (UIColor *)coffeeColor; + (UIColor *)copperColor; Copyright 2013 (c). Popeye Development Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
About
This includes new methods for colors and enables users to use hex strings to set gradient colors with image or colors
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published