开发者

I need to know when a textfield is done being edited

开发者 https://www.devze.com 2023-03-12 14:44 出处:网络
I have a class that contains several textfields. I need to know when one is done being edited and send the new information to one of my other objects.

I have a class that contains several textfields. I need to know when one is done being edited and send the new information to one of my other objects.

This question seemed similar but in Objective C? The buttons should be visible when the user is done entering the value in the textfield Objective-j doesn't have the same functions.

Browsing the documentation I found several functions that seemed like they might be able to help such as, textDidEndEditing but didn't understand how to use it. There are several more that sound related and I don't know what to use.

Summary: when the textfield is done being edited I need to perform another function. Also there are multiple textfields so 开发者_如何学GoI need to know which one is edited.


controlTextDidEndEditing is the delegate method you should implement. Or you can just set the target/action of the textfield

0

精彩评论

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

关注公众号