ios 柱图和饼图

饼图:https://github.com/honcheng/iOSPlot

饼图:https://github.com/tylerneylon/moriarty

柱图:http://www.devdiv.com/iOS_iPhone-%E5%88%86%E4%BA%AB%E4%B8%80%E4%B8%AA%E5%88%AB%E4%BA%BA%E7%9A%84%E6%9F%B1%E5%9B%BE-thread-70067-1-1.html

日历:https://github.com/klazuka/Kal


文字转换:

CGContextSetFillColorWithColor(context,[UIColor blackColor].CGColor);
            
            
            CGAffineTransform transform = CGAffineTransformIdentity;
            transform = CGAffineTransformTranslate(transform, x, y); //A
            transform = CGAffineTransformRotate(transform, - M_PI/6);      //B
            transform = CGAffineTransformTranslate(transform, -x, -y);   //C
            
            //CGAffineTransform rotateTransform = CGAffineTransformMakeRotation(- M_PI/6);
            CGContextSaveGState(context);
            CGContextConcatCTM(context, transform);
            
            
            [_lab.label drawAtPoint:CGPointMake(x,y) withFont:_font];
            
           CGContextRestoreGState(context);


发布了18 篇原创文章 · 获赞 5 · 访问量 10万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览