Quote:
Originally Posted by trojanvillage
I have set up a Boolean preference in my settings bundle, it works great from that end. In the code part though, I don't know how to read that boolean value. I'm trying to create a setting that toggles the background music off and on. How do I do this after the point of properly creating the .plist?
Can anyone point me to a tutorial or just help me out?
Thanks for your help.
|
Hope you coded it like this:
Code:
(To Save Bool)
[prefs setBool:isMusicOn forKey:@"musicBool"];
(To Read Bool)
isMusicOn = [prefs boolForKey:@"musicBool"];
__________________
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” Anonymous
Follow me on Twitter
http://twitter.com/stolidimran