如何阻止我的UILabel意外地包装?

时间:2016-10-25 17:28:13

标签: ios objective-c uilabel

我在故事板中设置了Error in rowMeans(test[, grep(x, names(test))]) : 'x' must be an array of at least two dimensions ,其中Lines = 0并且拉伸得足够大,可以容纳2或3行。 但是当我跑步时,我将structure(list(er = c(1L, 1L, 8L, 1L, 9L), er.1 = c(6L, 8L, 7L, 0L, 7L), as = c(90L, 56L, 6L, 8L, 2L), as.1 = c(8L, 7L, 4L, 6L, 4L), as.2 = c(6L, 5L, 5L, 4L, 3L), rt = c(4L, 5L, 9L, 3L, 89L ), op = c(87L, 9L, 6L, 6L, 7L)), .Names = c("er", "er.1", "as", "as.1", "as.2", "rt", "op"), class = "data.frame", row.names = c("a", "b", "c", "d", "e")) 设置为文本句子时,它会在前几个单词的每个单词之后注入换行符。

我设置UILabel 但它显示为:

GPS
37.6640
43,-121.9
10789

我的UILabel水平横跨屏幕,垂直拉伸,最多可显示4行。

初始化:

.text = "GPS 37.664051,-121.910774"

0 个答案:

没有答案