开发者

are you able to type into a UILabel

开发者 https://www.devze.com 2023-03-02 00:39 出处:网络
Hi I am wondering if you are able to use the ios k开发者_开发问答eyboard to update a textfield as the user types?you could get each character as they type through UITextFieldDelegate delegate methods,

Hi I am wondering if you are able to use the ios k开发者_开发问答eyboard to update a textfield as the user types?


you could get each character as they type through UITextFieldDelegate delegate methods, Once you get the set of character through delegate method , you could update you UILabel.


If you're talking about UITextField, then yes, naturally, those are meant to be modified by the user and interact with the keyboard just fine. If you're talking about UILabel, then no, the user can't type directly into a label, but as @Jhaliya suggests you could update the label whenever the user changes a text field, text view, or other object that can interact with the keyboard.

0

精彩评论

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