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.
所以我有一个使用核心图组合在一起的图表,但似乎无法弄清楚如何更改底部标题标签上的字体大小。有没有人遇到过这个?如果您愿意,我可以添加代码,但我认为这会很简单......提前致谢!
找到了!可以使用以下内容设置文本:
CPTMutableTextStyle *xAxisTextStyle = [CPTMutableTextStyle textStyle]; xAxisTextStyle.color = [[CPTColor whiteColor] colorWithAlphaComponent:1]; xAxisTextStyle.fontName = @"Helvetica-Bold"; xAxisTextStyle.fontSize = 5.0f;