Quote:
Originally Posted by smithdale87
what turned out to be the problem??
|
By "fixed it" I meant "oops I broke it" and reset the simulator.
Quote:
Originally Posted by Kalimba
The exception message is telling you right there what the problem is. You're indexing an array with index of 1, but the array only contains one object. Run it in the debugger to find out exactly where this is happening.
|
Right, not so sure but I think it is to do with my Picker, I was being a little heavy handed with it so I think the picker might have been out of bounds(?). I am saving the picker position in NSUserDefaults so that on next boot the app goes to the last position the picker was in.
The only time I could recall there being an ObjectatIndex call in my code was to do with the picker, so I figured it was a problem during the reset to previous at boot. So I figured resetting the Simulator -> Losing the NSUserdefaults would fix it.
I realize this isn't a long term solution, and it's actually good to have found the bug now rather than later, but I am just glad it is working again.
I have heard about and experienced some odd behavior from pickers, with individual picker entries occasionally dropping out. Not sure what causes it, or if anyone here has experienced it.