开发者

UITextField start at end of text

开发者 https://www.devze.com 2023-01-02 23:20 出处:网络
I have a UITextField that displays a long text string. The problem is that when I first open the view containing the UITextField, it automatically shows the 开发者_运维问答end of my text; I want it to

I have a UITextField that displays a long text string. The problem is that when I first open the view containing the UITextField, it automatically shows the 开发者_运维问答end of my text; I want it to show the beginning.

I read the UITextField Class Reference on the Apple dev center, but nothing seems to allow me to change it. How can I do this?


UITextField does not support this. You might consider switching to UITextView (which has a scrollRangeToVisible: method).

0

精彩评论

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