2
我是新來的iPhone開發任何人可以幫助我僅使用三個使用上面的代碼值iPhone Coreplot
-(NSUInteger)numberOfRecordsForPlot:(CPPlot *)plot
{
NSLog(@"Array1-->%@",Array1);
return [Array1 count];
}
-(NSNumber *)numberForPlot:(CPPlot *)plot
field:(NSUInteger)fieldEnum
recordIndex:(NSUInteger)index
{
NSLog(@"Array1-->%@",Array1);
NSLog(@"marks1-->%@",marks1);
if(fieldEnum == CPScatterPlotFieldX)
{
return [Array1 objectAtIndex:index];
}
else
{
if(plot.identifier == @"X Squared Plot")
{
return [marks1 objectAtIndex:index];
}
}
}
iploted曲線圖繪製曲線圖在iPhone,但我有每個數組中的許多價值..但我想繪製每個數組中只有三個值。
您需要給我們提供比您更多的信息。另外,請格式化您的代碼。 – sosborn 2011-05-19 05:09:10
我們還需要知道您嘗試過什麼,哪些不起作用。看着你的問題,我不知道如何提供幫助,因爲你沒有告訴我們問題是什麼。 – sosborn 2011-05-19 05:25:51