From: Josh L. <jos...@mu...> - 2010-02-18 14:10:49
|
Hello, I've been playing with XMLVM for a few days now, and with the help of the included sample code, I've got a basic UI with a couple of buttons and a text field working. When I tap in the text field, the keyboard pops up and works fine, but I can't get rid of it when hit the return key. From what I've read, it looks like UITextField.resignFirstResponder() might do the trick, but I'm not sure where I should be calling it from. I've tried overriding UITextField.KeyTyped and calling this.resignFirstResponder() from there, but I haven't gotten it to do anything yet. I've looked at the various delegates that are available, but none of them seem directly related to this. I saw the UIControlEvent class has the property EditingDidEnd in it, which also seems to be related from what I've read, but again, I'm not sure where to use it. If someone could explain how to close the keyboard, or tell me if that's absolutely not possible with the current version of XMLVM, it would be much appreciated. Thanks, Josh. |