objective c - NSUserdefault not saving value ios9.3 , ios 10 , using side navigation -
this issue has been cause of lots of frustration , nsuserdefaults stopped working. saving facebook information in userdefaults later use , returning nil. note : nil when try slide in side navigation (using swrevealviewcontroller) bar.
here code :
[[nsuserdefaults standarduserdefaults] setvalue:[nsstring stringwithformat:@"%@",[resparray valueforkey:@"image_url"]] forkey:@"profilepic"]; [[nsuserdefaults standarduserdefaults] synchronize];
what have tried : - add/remove synchronize - clearing nsuserdefaults app - using setobject , setvalue nsuserdefault key - using nsstring stringwithformat , retrieving strings.
i tried each , every solution available on , web.
Comments
Post a Comment