1
我正在使用此代碼來檢測從monotouch.dialog中的入口元素的鍵盤返回。檢測entryelement的鍵盤是否返回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"
後按'完成'。但鍵盤沒有消散。我應該用什麼來正確地工作?
感謝您的回覆。當它返回true時,鍵盤也不會消失。 – 2013-05-15 07:13:09