Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-13-2009, 03:14 PM   #5 (permalink)
m0s
Registered Member
 
Join Date: Mar 2009
Posts: 122
Default

Quote:
Originally Posted by smithdale87 View Post
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 View Post
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.

Last edited by m0s; 04-13-2009 at 03:19 PM.
m0s is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,677
Threads: 89,155
Posts: 380,392
Top Poster: BrianSlick (7,110)
Welcome to our newest member, Buster2000
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:15 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.