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
Post a Comment