I am able to store arrays of strings in nsuserdefaults, by doing:
string voted[] = new string[] {"john", "harry"};
NSUserDefaults.StandardUserDefaults ["voted"] = NSArray.FromStrings (voted);
But suppose I have an array of custom voted objects such as:
voted allvoted[] = new voted[] { obj1, obj2, obj3);
How do I store this array in nsuserdefaults. I have seen some obj-c answers on stackoverflow but I am having lots of difficulty trying to translate the code to Xamarin c#.
Thanks