Flat colors taken from Google's Material Design: Paper.
About
UIColor+BFPaperColors is a category for UIColor that adds class methods to conveniently produce over 240 new colors designed for flat or semi-flat interface designs by Google's Material Design Labs.
Add the UIColor+BFPaperColors header and implementation file to your project. (.h & .m)
After doing that, it is a simple as calling:[UIColor paperColorXXXXX] (where XXXXX is the color of your choice). Each paper color method is prefixed with the words "paperColor" for easy recognition in Xcode's code complete. All colors have a wide range of shades, noted by a number suffix. For example, A very light blue could be [UIColor paperColorLightBlue100] while a darker shade could be [UIColor paperColorLightBlue700].
Returns a simple gradient layer built from two colors.
@param startColor A UIColor to use as the start color of the gradient layer.
@param endColor A UIColor to use as the end color of the gradient layer.
@return A CAGradientLayer starting with the startColor and ending with the endColor.
CocoaPods
CocoaPods are the best way to manage library dependencies in Objective-C projects.
Learn more at http://cocoapods.org
Add this to your podfile to add the UIColor+BFPaperColors category to your project.
请发表评论