我正在尝试从 EntryElement 获取值
var password = new EntryElement("Password","Password",null,true);
我有一个带有点击事件的 StyledStringElement,例如
new Section()
{
new StyledStringElement ("Login", delegate {
Console.Write (string.Format("Password is {0}",password.Value));
Console.Write (string.Format("Email is {0}",email.Value));
})
当我单击该元素时,我可以看到电子邮件字符串值,但密码始终为空。
我需要采取哪些不同措施才能获取密码值?
最佳答案
确保您已按下 iPhone 键盘上的回车键,否则该值将不会保存
关于mono - 获取密码字段的 Monotouch.Dialog InputElement,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9613399/