private SecStatusCode AddRecord(string key, string val) { var sr = new SecRecord(SecKind.GenericPassword); sr.Account = key; sr.ValueData = NSData.FromString(val); return SecKeyChain.Add(sr); }