문제

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