颜色问题
来源:互联网 发布:网络歌曲没有车没有房 编辑:程序博客网 时间:2024/05/01 04:16
1、系统颜色
+ (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 // 比如:self.view.backgroundColor = [UIColor yellowColor];
2、随机颜色
[UIColor colorWithRed:arc4random() % 256/255.0 green:arc4random()%256/255.0 blue:arc4random()%256/255.0 alpha:1.0];
3、指定颜色:RGB
[UIColor colorWithRed:36/255.0 green:193/255.0 blue:102/255.0 alpha:1.0];
0 0
- 颜色问题
- 帽子颜色问题
- 改变控件颜色问题
- C++/C 颜色问题
- dialog背景颜色问题
- git 颜色问题
- 颜色值的问题
- QLabel字体颜色问题
- EditText光标颜色问题
- iOS statusBar 颜色问题
- IOS颜色问题
- Paraview模型颜色问题
- myeclipse颜色设置问题
- cube随机颜色问题
- paint设置颜色的问题。
- focus 设置颜色的问题
- 自定义颜色的setTextColor问题
- Excel if函数颜色问题
- 获取键盘按键值
- Java常用集合类的数据结构
- asmack.jar包最新下载地址
- 春天来了
- swipejs的bug
- 颜色问题
- mysql数据库优化之index索引
- Linux网络编程——端口复用(多个套接字绑定同一个端口)
- Android 5.0(Lollipop)中的SurfaceTexture,TextureView, SurfaceView和GLSurfaceView
- HDU 2049--不容易系列之(4)——考新郎【错排】
- linux /c 常识
- Jm录制脚本一
- UIButton 应用选择状态(附:UIButton 常用状态)
- tomcat连接池配置详解