【发布时间】:2011-04-15 11:05:40
【问题描述】:
您好,我正在尝试在我的 iPhone 应用程序中实现核心情节
为此我使用下面的代码
-(NSNumber *)numberForPlot:(CPPlot *)plot
field:(NSUInteger)fieldEnum recordIndex:(NSUInteger)index
{
if (plot.identifier==@"myBarChart") {
switch ( fieldEnum ) {
case CPBarPlotFieldBarLocation:
return (NSDecimalNumber *)[NSDecimalNumber numberWithUnsignedInteger:index];
case CPBarPlotFieldBarLength:
return [self.lockedPercentage objectAtIndex:index];
}
}
如果我在原始 coreplot 代码示例中使用此代码,它适用于条形图,但是当我在我的应用程序中使用相同的代码时,它会给出错误
case CPBarPlotFieldBarLength:Undeclared
可能是什么问题??
请帮助和建议
谢谢
【问题讨论】:
标签: iphone cocoa-touch ios4 core-plot