2011-04-15 106 views
0

您好我想實現我的iPhone應用程序iPhone CorePlot:錯誤 - 「CPBarPlotFieldBarLength:」 未申報的

爲核心情節我用下面的代碼

-(NSNumber *)numberForPlot:(CPPlot *)plot 
        field:(NSUInteger)fieldEnum recordIndex:(NSUInteger)index 
{ 
    if ([email protected]"myBarChart") { 
     switch (fieldEnum) { 
      case CPBarPlotFieldBarLocation: 
       return (NSDecimalNumber *)[NSDecimalNumber numberWithUnsignedInteger:index]; 
      case CPBarPlotFieldBarLength: 
       return [self.lockedPercentage objectAtIndex:index]; 
     } 

}

如果我在原始的coreplot代碼示例中使用此代碼它對條形圖工作正常,但當我在我的應用程序中使用相同的代碼時,它給出錯誤

case CPBarPlotFieldBarLength:Undeclared 

可能是什麼問題?

請幫忙推薦

感謝

回答

2

CPBarPlotFieldBarLength已更名爲CPBarPlotFieldBarTip

+0

感謝您的幫助 – ios 2011-04-16 08:43:31