request for member 'constantCoordinateValue' in something not a structure or union error in core plot
我正在尝试使用核心图为我的应用绘制条形图,如下所示
http://code.google.com/p/core-plot/source/browse/examples/CPTestApp-iPhone/Classes/CPTestAppBarChartController.m?r=1dcee044c4981113f38b3445880c88da14bdb40e
我遇到
的错误
1 2 3 | CPXYAxisSet *axisSet = (CPXYAxisSet *)barChart.axisSet; CPXYAxis *x = axisSet.xAxis; x.constantCoordinateValue = CPDecimalFromString(@"0"); |
第
行出现错误
错误:请求成员'constantCoordinateValue'的原因不是结构或联合
和以下
相同的错误
1 | y.constantCoordinateValue = CPDecimalFromString(@"0"); |
我希望有人知道如何解决这个问题
先谢谢您
使用此
1 | x.orthogonalCoordinateDecimal = CPDecimalFromString(@"0"); |
代替
1 | x.constantCoordinateValue = CPDecimalFromString(@"0"); |