xamarin.ios - Xamarin iOS set plist values -


i have own plist setting values, added under resources folder. can read these value not reset them through code.

for resetting have

 nsmutabledictionary dictionary = nsmutabledictionary.fromfile (filename);  nsobject value = nsobject.fromobject(newurl);  nsstring key = new nsstring("webpage url");  dictionary.setvalueforkey (value, key); 

the code not change value kay.

first, don't see place write dictionary file. think if fix problem. second, why not store application settings in nsuserdefaults , think it's little bit more clean:

var value = nsuserdefaults.standarduserdefaults.stringforkey("page-url")  nsuserdefaults.standarduserdefaults.setstring(value, "page-url"); 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -