Domanda

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

È stato utile?

Soluzione

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]];
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top