上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页
摘要: 重点: 获取绘制图形 Layer CAShapeLayer *shapeLayer = [CAShapeLayer layer]; 设置图形有线颜色 [CAShapeLayer layer].strokeColor = [UIColor redColor].CGColor; 设置图形填充颜色 [CA 阅读全文
posted @ 2017-06-17 20:18 TheYouth 阅读(1392) 评论(0) 推荐(0) 编辑
摘要: 一、Quartz2D介绍 1、什么是Quartz2D? 2.什么是图形上下文(core Graphics Context)? 3.什么时候调用drawRect? 4. 关键代码 获取上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); 贝塞尔曲线 阅读全文
posted @ 2017-06-14 21:52 TheYouth 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 一、处理普通文本的颜色 图1: 二、处理html中文字颜色 未完待整理 阅读全文
posted @ 2017-06-14 09:41 TheYouth 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 一、CAGradientLayer实现渐变色(设置tableView背景为渐变色) 阅读全文
posted @ 2017-06-14 09:24 TheYouth 阅读(1275) 评论(0) 推荐(0) 编辑
摘要: html代码 图1 图2 一、情景1:加载到UILabel上面(转换成富文本即可) 二、情景2:加载到UIWebView上面(替换html中部分的字符) 三、缓存html用RNCachingURLProtocol库。 阅读全文
posted @ 2017-06-12 18:15 TheYouth 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: 一、情况一,设置阴影 阅读全文
posted @ 2017-06-07 22:02 TheYouth 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1、应用场景,文字居左,图片居中 2、正常情况,图片居左,文字居右 图1 图2 阅读全文
posted @ 2017-06-07 21:48 TheYouth 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1、无限循环滚动 SDCycleScrollView https://github.com/gsdios/SDCycleScrollView 无限循环图片、文字轮播器,左右上下都可以实现滚动。 2、 刻度尺 ZHRulerView https://github.com/TheYouth/ZHRule 阅读全文
posted @ 2017-05-31 19:47 TheYouth 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1.通过cocoapods 导入 添加 pod 'GrowingIO' 到 Podfile 中。 2.登录创建应用,获取id。 3.在 AppDelegate 中引入#import "Growing.h" 4. [Growing startWithAccountId:@"您的项目ID"]; 5. 开启Growing调试日志 可以开启日志 // [Growing setEnableLo... 阅读全文
posted @ 2017-05-25 20:47 TheYouth 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 1、 2、本地文件的.gitignore与服务器上的冲突 3.git 常用命令速查表 阅读全文
posted @ 2017-05-24 15:44 TheYouth 阅读(302) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页