In the declaration file, I have defined BOOL fadeOut,proximitySensor,enableGestures,keepScreenOn;. Grabbing the information works fine, but it's when I change the BOOL values, the application crashes. I can't quite understand what the problem is. Perhaps I'm missing the bigger picture or a simple but important mistake with Boolean values.

If I remove the above code, everything works fine. But If I leave it there, the app crashes with the following message:

I understand, thanks buddy! One thing I can't get my head around is that If I didn't toggle the switches and left them initialised (All set to 1), the code worked. But when they were toggled, upon next launch, the app crashed. Why would it initially work?
–
sooperDec 13 '11 at 22:38

Strange, I don't know. I tried to init the string with nil (it will output nil if it was uninitialized) and it gave me an exception on the Mac. Maybe it's different on iOS?
–
gcampDec 14 '11 at 2:14