请求成员“constantCooperativeValue”在核心情节中不是结构或联合错误的地方
我正在尝试使用此处给出的核心图为我的应用程序绘制条形图
http:// /code.google.com/p/core-plot/source/browse/examples/CPTestApp-iPhone/Classes/CPTestAppBarChartController.m?r=1dcee044c4981113f38b3445880c88da14bdb40e
我收到错误,
CPXYAxisSet *axisSet = (CPXYAxisSet *)barChart.axisSet;
CPXYAxis *x = axisSet.xAxis;
x.constantCoordinateValue = CPDecimalFromString(@"0");
因为上面的行错误即将到来
:请求对于非结构或联合中的成员“constantCooperativeValue” 和下面的同样的错误
y.constantCoordinateValue = CPDecimalFromString(@"0");
我希望有人知道如何解决这个问题
提前谢谢
i am trying to draw bar chart for my app using core plot as give on here
http://code.google.com/p/core-plot/source/browse/examples/CPTestApp-iPhone/Classes/CPTestAppBarChartController.m?r=1dcee044c4981113f38b3445880c88da14bdb40e
i am getting error for
CPXYAxisSet *axisSet = (CPXYAxisSet *)barChart.axisSet;
CPXYAxis *x = axisSet.xAxis;
x.constantCoordinateValue = CPDecimalFromString(@"0");
error is coming for above line
error: request for member 'constantCoordinateValue' in something not a structure or union
and same error for following
y.constantCoordinateValue = CPDecimalFromString(@"0");
i hope some know how to solve this
thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用这个
代替
use this
instead