11 2018 档案
CAShapeLayer绘图
摘要:之前讲过使用UIBezierPath在UIView的drawRect中绘图, 今天我们讲下另外一种方式: CAShaperLayer 先说说使用CAShapeLayer的优点: GPU执行, GPU执行, GPU执行 比如我们要画这样一个形状, 按照之前的思路是创建一个UIView子类, 用UIBe 阅读全文
posted @ 2018-11-30 22:54 chennet 阅读(219) 评论(0) 推荐(0)
iOS Masonry控件等比例布局
摘要:一、先解释相关API 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /** * distribute with fixed spacing * * @param axisType 横排还是竖排 * @param fixedSpacing 两个控件间隔 * 阅读全文
posted @ 2018-11-29 17:57 chennet 阅读(2475) 评论(0) 推荐(0)
mac安装brew简单方法
摘要:安装方法:命令行输入 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 回车(这里有提示目录不存在,要创建需要按return键,如果用的windows键 阅读全文
posted @ 2018-11-09 15:16 chennet 阅读(543) 评论(0) 推荐(0)