更新时间:2023-11-17 14:16:04
好的我用一些技巧做了;)首先制作了一个UITextField并增加了它大小如下:
Ok I did it with some trick ;) First made a UITextField and increased it's size like this :
CGRect frameRect = textField.frame
frameRect.size.height = 53
textField.frame = frameRect
然后我在与我制作UITextField相同的区域制作了一个UITextView,删除了它的背景颜色。现在看起来我有多行TextField!
Then I made a UITextView exactly in the same area that i made my UITextField, and deleted its background color. Now it looks like that I have a multiple lines TextField !