Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的一个 ipad 项目中使用核心情节。是否可以使用图像设置饼图中所有切片的颜色。提前谢谢
是的。在您的数据源中实现以下方法并返回一个 CPFill 对象,该对象将您的图像用于请求的切片索引。
-(CPFill *)sliceFillForPieChart:(CPPieChart *)pieChart recordIndex:(NSUInteger)index;