上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 69 下一页
摘要: - (void)setTitle:(NSString *)title forState:(UIControlState)state;设置按钮的文字 - (void)setTitleColor:(UIColor *)color forState:(UIControlState)state;设置按钮的文 阅读全文
posted @ 2016-11-12 20:35 iFat 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 设置按钮在不同状态下的背景图片(为了保证高亮状态下的图片正常显示,必须设置按钮的type为custom) 阅读全文
posted @ 2016-11-12 20:23 iFat 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 实际上,UIButton自带了很多种不同的样式 在用代码创建按钮的同时指定按钮样式UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; UIButtonTypeCustom:无类型,按钮的内容需要自定义UIButtonTypeDe 阅读全文
posted @ 2016-11-12 20:09 iFat 阅读(199) 评论(0) 推荐(0) 编辑
摘要: normal(普通状态) 默认情况(Default) 对应的枚举常量:UIControlStateNormal highlighted(高亮状态)按钮被按下去的时候(手指还未松开)对应的枚举常量:UIControlStateHighlighted disabled(失效状态,不可用状态)如果enab 阅读全文
posted @ 2016-11-12 20:00 iFat 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 还有一个非常重要的UI控件 UIButton,俗称“按钮”一般情况下,点击某个控件后,会做出相应反应的都是按钮按钮的功能比较多,既能显示文字,又能显示图片,还能随时调整内部图片和文字的位置 阅读全文
posted @ 2016-11-12 19:56 iFat 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 图标下载网站 http://www.easyicon.net/ 阅读全文
posted @ 2016-11-12 15:50 iFat 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: 一、开发中常用的颜色 每一种颜色都是由N个颜色通道组成 常见的颜色通道(ARGB) A: alpha 透明度 R: red 红色 G: green 绿色 B: blue 蓝色 常见颜色 白色:全部通道满值 黑色:全部通道都是0(透明度除外) 灰色:RGB通道的值一样 二、32位颜色认知 颜色的组成 阅读全文
posted @ 2016-11-10 20:40 iFat 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h" #import @interface ViewController () /** * 背景图片 */ @property (weak, nonatomic) IBOutlet UIImageView *bgImageView; /** 播放器 */ @property (nonatomic, strong) AVPlayer *p... 阅读全文
posted @ 2016-11-09 20:21 iFat 阅读(325) 评论(0) 推荐(0) 编辑
摘要: @implementation ViewController /** 图片的两种加载方式: 1> imageNamed: a. 就算指向它的指针被销毁,该资源也不会被从内存中干掉 b. 放到Assets.xcassets的图片,默认就有缓存 c. 图片经常被使用 2> imageWithContentsOfFile: ... 阅读全文
posted @ 2016-11-09 18:56 iFat 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h" /** 加载图片的方式: 1. imageNamed: 2. imageWithContentsOfFile: 1. 加载Assets.xcassets这里面的图片: 1> 打包后变成Assets.car 2> 拿不到路径 3> 只能通过imageNamed:来加载图片 4> 不能... 阅读全文
posted @ 2016-11-07 23:11 iFat 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 69 下一页