The issue I'm having is, that the iphone simulator runs the code fine and functions how I designed it. But when I run on the actual device its reading trash values that were stored into the array. I stepped through the code and saw that the proper values were being retrieved from the database. But when i set the nsmutablearray to the contents of the array returned from the sql method its storing crap data (or at least I think so).
I have a project where I'm reading int values from a database into a NSInteger to be placed in a NSMutableArray. This method is be called from one of my viewcontrollers to fill a NSMutableArray. This array is being used to retrieve the NSInteger into a int.
Within the SQL Method I'm returning an autoreleased array. I don't understand how this code works fine in the simulator but not on the actual device.
Any pointers? If you wish to help and need code I can post it later this evening. Otherwise I could just use a pointer in the right direction as where to figure out what the issue is.
I have a project where I'm reading int values from a database into a NSInteger to be placed in a NSMutableArray. This method is be called from one of my viewcontrollers to fill a NSMutableArray. This array is being used to retrieve the NSInteger into a int.
Within the SQL Method I'm returning an autoreleased array. I don't understand how this code works fine in the simulator but not on the actual device.
Any pointers? If you wish to help and need code I can post it later this evening. Otherwise I could just use a pointer in the right direction as where to figure out what the issue is.