【发布时间】:2013-05-14 08:52:37
【问题描述】:
我正在使用此代码来检测从 monotouch.dialog 中输入元素的键盘返回。
RltEntryElement createServerUrlEntry(){
try {
ServerNameEntryElement = new EntryElement ("Website url","placeholder",
"value");
ServerNameEntryElement .ReturnKeyType = UIReturnKeyType .Done ;
ServerNameEntryElement.ShouldReturn += ShouldReturnMethd;
return ServerNameEntryElement ;
} catch (Exception ex) {
RltLog .HandleException (ex);
return null ;
}
}
public bool ShouldReturnMethd ()
{
RltLog .LogInfo ("Helllllllllllllo");
return false ;
}
它可以工作并在按下“完成”后记录"Helllllllllllllo"。但键盘并没有消失。我应该用它来正确地工作吗?
【问题讨论】:
标签: iphone ios xamarin.ios monotouch.dialog