06 2017 档案

摘要:核心思想 1、通过UIView 开始动画[UIView beginAnimations:@"scroll" context:nil];到提交动画 [UIView commitAnimations]; 来实现动画效果,在这代码之间实现要做动画的效果,中间可以设置动画的速度,是否匀速及监听。 2、通过设 阅读全文
posted @ 2017-06-21 21:56 TheYouth 阅读(3793) 评论(0) 推荐(0) 编辑
摘要:重点: 获取绘制图形 Layer CAShapeLayer *shapeLayer = [CAShapeLayer layer]; 设置图形有线颜色 [CAShapeLayer layer].strokeColor = [UIColor redColor].CGColor; 设置图形填充颜色 [CA 阅读全文
posted @ 2017-06-17 20:18 TheYouth 阅读(1401) 评论(0) 推荐(0) 编辑
摘要:一、Quartz2D介绍 1、什么是Quartz2D? 2.什么是图形上下文(core Graphics Context)? 3.什么时候调用drawRect? 4. 关键代码 获取上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); 贝塞尔曲线 阅读全文
posted @ 2017-06-14 21:52 TheYouth 阅读(193) 评论(0) 推荐(0) 编辑
摘要:一、处理普通文本的颜色 图1: 二、处理html中文字颜色 未完待整理 阅读全文
posted @ 2017-06-14 09:41 TheYouth 阅读(249) 评论(0) 推荐(0) 编辑
摘要:一、CAGradientLayer实现渐变色(设置tableView背景为渐变色) 阅读全文
posted @ 2017-06-14 09:24 TheYouth 阅读(1312) 评论(0) 推荐(0) 编辑
摘要:html代码 图1 图2 一、情景1:加载到UILabel上面(转换成富文本即可) 二、情景2:加载到UIWebView上面(替换html中部分的字符) 三、缓存html用RNCachingURLProtocol库。 阅读全文
posted @ 2017-06-12 18:15 TheYouth 阅读(1210) 评论(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) 编辑

点击右上角即可分享
微信分享提示