我正在从 iPhone 应用程序中的数据库获取数据,我想要“价格”列中的最大数量,并且此代码不起作用
for(int *i=0; i <= [Rows count]; i++){
Dict = [Rows objectAtIndex:i];
if([[Dict objectForKey:@"Price"]intValue] > MaxNum){
MaxNum = [[Dict objectForKey:@"Price"]floatValue];
}
}