How do remove the border around a core-plot graph

后端 未结 7 2026
北荒
北荒 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:07

    OK I found out how to do it - quite simple really!

    CPLineStyle *borderLineStyle = [CPLineStyle lineStyle];
    borderLineStyle.lineColor = [CPColor whiteColor];
    borderLineStyle.lineWidth = 1.0;
    
    graph.plotArea.borderLineStyle = borderLineStyle;
    

    where graph is your graph object - the reason I had a border in the first place was because I used CPPlainWhiteTheme.

    Hope this helps others - is there a better way?

提交回复
热议问题