How do remove the border around a core-plot graph

后端 未结 7 1984
北荒
北荒 2021-01-31 18:42

I am trying to remove the border around a core plot graph on the iPhone - but seem to be struggling on what should be simple in my mind.

Pointers please!

7条回答
  •  不思量自难忘°
    2021-01-31 19:13

    The correct way with borderLineStyle = nil after applyTheme:

    CPTGraph *graph = [[CPTXYGraph alloc] initWithFrame:hostView.bounds];
    
    // Set padding for plot area
    [graph applyTheme:[CPTTheme themeNamed:kCPTPlainWhiteTheme]];
    graph.plotAreaFrame.borderLineStyle = nil;
    

提交回复
热议问题