Heres my array
NSMutableArray *arrayTmp= [[NSMutableArray alloc] init];
I populate it like this
double price = sqlite3_column_double(stm, 3);
double accumPrice = sqlite3_column_double(stm, 4);
[arrayTmp addObject:[NSDictionary dictionaryWithObjectsAndKeys:desc,@"desc",
due,@"due", price,@"price", accumPrice,@"accum",nil]];
I assign it to a variable for use in my UITableView
self.transactionsArray = arrayTmp;
[arrayTmp release];
Which in my h file is a NSMutableArray
NSMutableArray *transactionsArray;
Now in my CellForRowAtIndexPath I can call strings but I can't pull out doubles.
double price = [[[transactionsArray objectAtIndex:indexPath.row] objectForKey:@"price"] doubleValue];
double accum = [[[transactionsArray objectAtIndex:indexPath.row] objectForKey:@"accum"] doubleValue];
I've tried doubleForKey instead of objectForKey, but the compiler doesn't like that and DoubleValue but that doesn't work either.
Help?