Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 是否可以在coreplot中设置hostingview的背景色?_Ios_Core Plot - Fatal编程技术网

Ios 是否可以在coreplot中设置hostingview的背景色?

Ios 是否可以在coreplot中设置hostingview的背景色?,ios,core-plot,Ios,Core Plot,我需要将core plot中宿主视图的背景色设置为clear color。有人能帮我吗?core plot宿主视图是UIView的子类。它应该默认为清晰的背景色。看 您还可以使用图像在图形上设置填充,而不是将其放置在背景中 graph.fill = [CPTFill fillWithImage:[CPTImage imageWithCGImage:myCGImage]]; 这只是一个例子CPTImage还有其他几种初始化方法。感谢您的回复。我试过了,但它对我不起作用。我想在视图上保留一个图像,

我需要将core plot中宿主视图的背景色设置为clear color。有人能帮我吗?

core plot宿主视图是
UIView
的子类。它应该默认为清晰的
背景色
。看

您还可以使用图像在图形上设置填充,而不是将其放置在背景中

graph.fill = [CPTFill fillWithImage:[CPTImage imageWithCGImage:myCGImage]];

这只是一个例子
CPTImage
还有其他几种初始化方法。

感谢您的回复。我试过了,但它对我不起作用。我想在视图上保留一个图像,然后在其上添加具有清晰颜色的宿主视图。因此,我的图形可以看起来像是在该图像上绘制的。使用此方法用图像填充图形对其没有影响。甚至我尝试用图像填充PlotAareaFrame。它会产生黑屏。将图形、绘图区域框架和/或绘图区域的
fill
设置为
nil
,以使其透明。默认情况下,宿主视图应该是透明的。谢谢。我找到了解决办法。我用图像填充了绘图区域框架,它完成了我想要的。谢谢你的帮助。