开发者

Monotouch: how to verify UITextFields

I have several UITextFields that I want to do a numeric check on when the user taps the Next key on the keyboard. I kno开发者_Python百科w I can do it when the k/b becomes first responder... I want to check the field before the user goes on to the next field.

How do I do this?


void HandleTxtHIhandleEditingDidEnd (object sender, EventArgs e) {
if(!decimal.TryParse(txtHI.Text, out x)) {

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜