Post

Replies

Boosts

Views

Activity

Comment on NSuserdefault issue after restart my iphone
The point of my response was that if you use the Simulator you can see the plist file where the defaults are saved, and you can determine whether you were actually writing them (so the issue is in reading them), or if they weren't in the file the issue is in the writing. You're saving a string 1 for a boolean pushIsYes. You should write and read it as a boolean with boolForKey. This can stop you accidentally mixing up values.
Topic: App & System Services SubTopic: General Tags:
Jun ’25