Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

NSUserDefaults can not save data.

$
0
0

I will try to use NSUserDefaults.

They have a problem

appdelegate.cs...

NSUserDefaults.StandardUserDefaults.init();

To save them

var plist = NSUserDefaults.StandardUserDefaults; plist.SetString ( “1234567" , "Key_string" ); plist.Synchronize ();

reading.. var myKey2 = plist.StringForKey ( "Key_string" );

The code is no problem.

All will be saved during the execution of the program, was able to read all

But I exit the program and restart when

Can not recall the stored value.

I have to store a user's ID and PASSWORD

Sign convenient tries.

I save my strings and have not reloading.

The cause can not be found.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>