سؤال

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

هل كانت مفيدة؟

المحلول

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]];
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top