Frage

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???

War es hilfreich?

Lösung

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]];
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top