[英]swift dynamic numbers of line
i work with ios 8 swift an have a textfield into a table cell. 我使用ios 8 swift将文本字段放入表格单元格。
if i put in this textfield a short text, i have no problems. 如果我在此文本字段中输入一小段文字,则没有问题。
but is there a long text, the end of the this will cut, like this: 但是是否有长文本,该文本的结尾将被剪裁,如下所示:
"This is the Exmaple of ..." “这是……的典范”
how can i set dynamic a second line in to my textfield, if the text will be to long for it? 如果文本太长了,我该如何在文本框中动态设置第二行?
i do not have any code because i dont know how i can solve this situation. 我没有任何代码,因为我不知道如何解决这种情况。
UITextField
can contains only one line of text. UITextField
只能包含一行文本。 The component you need is the UITextView
. 您需要的组件是
UITextView
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.