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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -