05 2016 档案

摘要:CGContextRef CGBitmapContextCreate ( void *data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef colorspace, 阅读全文
posted @ 2016-05-25 23:39 huangyan1022 阅读(249) 评论(0) 推荐(0)
摘要:UIImage *image = [UIImage imageNamed:@"message_i"];//对图片进行切分 image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(16, 16, 16, 30) resizingMode: 阅读全文
posted @ 2016-05-05 23:52 huangyan1022 阅读(97) 评论(0) 推荐(0)
摘要:前言 笔者在写本篇文章之前,也没有系统学习过贝塞尔曲线,只是曾经某一次的需求需要使用到,才临时百度看了一看而且使用最基本的功能。现在总算有时间停下来好好研究研究这个神奇而伟大的贝塞尔先生! 笔者在学习时,首先看了两遍UIBezierPath类头文件定义,熟悉了一下相关的属性和方法。 基础知识 使用U 阅读全文
posted @ 2016-05-05 00:11 huangyan1022 阅读(109) 评论(0) 推荐(0)
摘要:CAShapeLayer与UIBezierPath的关系: CAShapeLayer与UIBezierPath画圆 效果图如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 - (CAShapeLay 阅读全文
posted @ 2016-05-05 00:10 huangyan1022 阅读(169) 评论(0) 推荐(0)