Question

I am trying to remove and padding around graph:

graph.paddingLeft   = 0.0;
graph.paddingTop    = 0.0;
graph.paddingRight  = 0.0;
graph.paddingBottom = 0.0;

[graph setBorderWidth:0.0];
[graph setBorderColor:(__bridge CGColorRef)([CPTColor clearColor])];

But I am still having a thin black line rectangle around the graph???

Était-ce utile?

La solution

It would be your CPTGraphHostingView border.

To identify this kind of issues, set different border color's for all the related objects and identify them easily.

Try this code to change the borders.

[self.hostingView.layer setBorderWidth:2];
[self.hostingView.layer setBorderColor:[[UIColor blueColor] CGColor]];
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top