[英]core-plot graph title shadow?
As with adding a shadow to plot's data label, how does one add it to the graph title? 就像在图的数据标签上添加阴影一样,如何将阴影添加到图形标题中? This line doesn't work:
该行不起作用:
CPTMutableShadow * shadow = [CPTMutableShadow shadow];
shadow.shadowColor = [CPTColor blackColor];//colorAtIndex:slot.backRGB];
shadow.shadowOffset = CGSizeMake(1,-1);
shadow.shadowBlurRadius = 2.0f;
graph.titleTextStyle.<?> = shadow;
I guess what's needed along with the examples is a recipe book? 我想与示例一起需要的是一本食谱书?
There is no way to set a shadow only on the graph title. 无法仅在图形标题上设置阴影。
You can use a layer annotation instead of the title. 您可以使用图层注释代替标题。 Use a
CPTTextLayer
as the annotation content layer and set the shadow on that. 使用
CPTTextLayer
作为注释内容层,并在其上设置阴影。 All CPTLayer
objects have a shadow
property. 所有
CPTLayer
对象都具有shadow
属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.