QuartZ技术
百度搜索:图标引擎
coreplot 折线图框架
CGContextRef 图形上下文
CGContextSaveGState(ctx)保存上下文,存入图形上下文栈中
CGContextRestoreGState(ctx)出栈,替换当前的ctx
CGContextClio(ctx)把上下文的内容裁剪出来,以后的内容只能放进这个里面
【self.xxview setNeedsDisplay(inRect)】重绘:调用drawRect方法
CADisplayLink *link = [CADisplayLink displayLinkWithTarget:self selector:@selector(setNeedsDisplay)];
[link addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode];
create/copy/retain 使用后一定要用CFRelease