摘要: 可以利用 CGMutablePathRef 创建每个不同图形,然后再一起添加到CGContext中- (void)drawRect:(CGRect)rect{ CGContextRef ctx = UIGraphicsGetCurrentContext(); //一、 画线 ... 阅读全文
posted @ 2015-07-02 19:00 第三维 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.使用NSTimer 来实现[NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(setNeedsDisplay) userInfo:nil repeats:YES];2.使用CADisplayLin... 阅读全文
posted @ 2015-07-02 12:52 第三维 阅读(213) 评论(0) 推荐(0) 编辑