【发布时间】:2011-12-09 20:45:13
【问题描述】:
我正在使用UIBezierPath 和[path addArcWithCenter:radius:startAngle:endAngle:clockwise:] 方法在Core Graphics 的自定义饼图中绘制“切片”。我的问题是,切片的尖端通常会突出中心点,侵入其他切片空间。
有没有办法“圆”这个边缘?
这是我用来绘制路径的代码
[path moveToPoint:center];
[path addArcWithCenter:center radius:radius startAngle:interiorAngle endAngle:totalAngle clockwise:YES];
[path addLineToPoint:center];
[path closePath];
这是问题的图片:
左下方蓝色部分的白色尖头略微插入右上方的大蓝色部分。
【问题讨论】:
标签: ios core-graphics pie-chart