uikit——UIFont
来源:互联网 发布:%在c语言是什么意思 编辑:程序博客网 时间:2024/06/07 14:01
create
// Convenience methods for creating colors+ (UIColor *)colorWithWhite:(CGFloat)white alpha:(CGFloat)alpha;+ (UIColor *)colorWithHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha;+ (UIColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;+ (UIColor *)colorWithCGColor:(CGColorRef)cgColor;+ (UIColor *)colorWithPatternImage:(UIImage *)image;#if __has_include(<CoreImage/CoreImage.h>)+ (UIColor *)colorWithCIColor:(CIColor *)ciColor NS_AVAILABLE_IOS(5_0);#endif
解释:
- 支持gray colorspace
- 支持HSB colorspace
- 支持RGB colorspace
- 支持Quartz color,native color space of Quartz color
- 支持pattern image,tiled模式绘制,默认相位为0,即image的top-left corner与绘制区域原点对齐
- 支持Core Image color
init
// Initializers for creating colors- (UIColor *)initWithWhite:(CGFloat)white alpha:(CGFloat)alpha;- (UIColor *)initWithHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha;- (UIColor *)initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;- (UIColor *)initWithCGColor:(CGColorRef)cgColor;- (UIColor *)initWithPatternImage:(UIImage*)image;#if __has_include(<CoreImage/CoreImage.h>)- (UIColor *)initWithCIColor:(CIColor *)ciColor NS_AVAILABLE_IOS(5_0);#endif注:对应create各种创建UIColor模式
预定义颜色
// Some convenience methods to create colors. These colors will be as calibrated as possible.// These colors are cached.+ (UIColor *)blackColor; // 0.0 white + (UIColor *)darkGrayColor; // 0.333 white + (UIColor *)lightGrayColor; // 0.667 white + (UIColor *)whiteColor; // 1.0 white + (UIColor *)grayColor; // 0.5 white + (UIColor *)redColor; // 1.0, 0.0, 0.0 RGB + (UIColor *)greenColor; // 0.0, 1.0, 0.0 RGB + (UIColor *)blueColor; // 0.0, 0.0, 1.0 RGB + (UIColor *)cyanColor; // 0.0, 1.0, 1.0 RGB + (UIColor *)yellowColor; // 1.0, 1.0, 0.0 RGB + (UIColor *)magentaColor; // 1.0, 0.0, 1.0 RGB + (UIColor *)orangeColor; // 1.0, 0.5, 0.0 RGB + (UIColor *)purpleColor; // 0.5, 0.0, 0.5 RGB + (UIColor *)brownColor; // 0.6, 0.4, 0.2 RGB + (UIColor *)clearColor; // 0.0 white, 0.0 alpha
系统颜色
// System colors@interface UIColor (UIColorSystemColors)+ (UIColor *)lightTextColor __TVOS_PROHIBITED; // for a dark background+ (UIColor *)darkTextColor __TVOS_PROHIBITED; // for a light background+ (UIColor *)groupTableViewBackgroundColor __TVOS_PROHIBITED;+ (UIColor *)viewFlipsideBackgroundColor NS_DEPRECATED_IOS(2_0, 7_0) __TVOS_PROHIBITED;+ (UIColor *)scrollViewTexturedBackgroundColor NS_DEPRECATED_IOS(3_2, 7_0) __TVOS_PROHIBITED;+ (UIColor *)underPageBackgroundColor NS_DEPRECATED_IOS(5_0, 7_0) __TVOS_PROHIBITED;@end
获取颜色信息
0 0
- uikit——UIFont
- iOS—UIFont设置字体
- iOS学习—UIFont字体
- uikit——UIColor
- UIDynamic—UIKit 动力学
- iOS开发UIKit动力学——UIKit Dynamics
- IOS开发——UIKit
- UIFont
- UIFont
- UIFont
- UIFont
- UIFont
- UIFont
- UIFont
- UIFont
- uikit——UIViewController——生命周期
- uikit——UIView——drawing
- uikit——UIView——layout
- [李景山php] 关于编程的思考
- Old MacDonald Had A Farm——递推
- threadlocal
- cygwin下安装 tmux过程
- 系统吞吐量(TPS)、用户并发量、性能测试概念和公式
- uikit——UIFont
- [已解决]讯飞语音android集成时遇到Error:(35) Tag <uses-permission> attribute name has invalid character ' '.
- iOS-高德地图点击地图获取点击点对应的地理位置,并添加自定义的大头针
- python基础
- 输入两个数组 把两个数组内元素从大到小顺序输出
- 路由器PPTP穿透的经验分享
- nginx的极客学院介绍
- MFC之套接字发送最简单例子
- 文章标题