【问题标题】:iPhone CorePlot:error- "CPBarPlotFieldBarLength:" UndeclarediPhone CorePlot:错误-“CPBarPlotFieldBarLength:”未声明
【发布时间】: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


    【解决方案1】:

    CPBarPlotFieldBarLength 已重命名为 CPBarPlotFieldBarTip

    【讨论】:

      猜你喜欢
      • 2015-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-28
      • 1970-01-01
      • 2013-08-21
      • 1970-01-01
      相关资源
      最近更新 更多