摘要: 使用Quartz2D前 先导入QuartzCore.framework //划线 常用拼接路径函数 新建一个起点void CGContextMoveToPoint(CGContextRef c, CGFloat x, CGFloat y) 添加新的线段到某个点void CGContextAddLin 阅读全文
posted @ 2015-12-15 21:01 偏执Dog 阅读(139) 评论(0) 推荐(0) 编辑
摘要: $(SRCROOT)/项目名/pch文件名.pch //0-255的随机数 #define randint arc4random() % 256 //随机色 #define randColor [UIColor colorWithRed:randint/255.0 green:randint/255 阅读全文
posted @ 2015-12-15 20:59 偏执Dog 阅读(155) 评论(0) 推荐(0) 编辑
摘要: /** * 修改状态栏颜色 * UIStatusBarStyleDefault 默认黑色,在浅色的背景上使用 * UIStatusBarStyleLightContent 亮白,在深色的背景上使用 * UIStatusBarStyleDefault IOS7之后淘汰 * UIStatusBarSty 阅读全文
posted @ 2015-12-15 11:28 偏执Dog 阅读(157) 评论(0) 推荐(0) 编辑