@IBOutlet var lable: UILable? lable.text = "asdfasdfasdfasdf"
能否在 字符串中间加入 "\n" 这样的换行符呢?
"\n"
希望能够给出稍微详细一些的回答
认证高级PHP讲师
I found a way, set the following two properties, and then n it will take effect
n
Label.lineBreakMode = NSLineBreakMode.ByWordWrapping Label.numberOfLines = 0 label.text = "lineone\nlinetwo"
Yes. But you have to set the numberoflines of UILabel
I found a way, set the following two properties, and then
n
it will take effectYes. But you have to set the numberoflines of UILabel