How to save a BOOL in iOS app -
i used following code save bool
it's not working.
[[nsuserdefaults standarduserdefaults] setbool:yes forkey:@"save"]; strongman = [[nsuserdefaults standarduserdefaults] boolforkey:@"save"];
are there other ways save bool
?
you should add following code
[[nsuserdefaults standarduserdefaults] synchronize];
Comments
Post a Comment