// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
UIBezierPath *path = [UIBezierPath bezierPath];
//画图的起点坐标
[path moveToPoint:CGPointMake(50, 50)];
//依次连接各个坐标
[path addLineToPoint:CGPointMake(50, 100)];
[path addLineToPoint:CGPointMake(100, 100)];
[path addLineToPoint:CGPointMake(100, 50)];
//闭合
[path closePath];
//上下文
CGContextRef context = UIGraphicsGetCurrentContext();
//保存上下文状态
CGContextSaveGState(context);
关于”空杯之心“的重新思考
《光荣与梦想:19321972年美国叙事史》笔记
《哥伦布大交换:1492年以后的生物影响和文化冲击》笔记
《增长、短缺与效率》笔记
《逃不开的经济周期:历史、理论与投资现实》笔记
《经济学》笔记
《就业、利息和货币通论》笔记
PostgreSQL与MySQL比较
让svn自动更新代码注释中的版本号