XLForm Cell numberOfLines

时间:2014-09-11 04:13:08

标签: ios xlform

使用XLForm的任何专业人士都知道如何配置单元格,以便textLabel.numberOfLines可以更改为2?我有一个很长的字符串,不能放在一行。

非常感谢任何建议或想法!非常感谢你提前!!! = d

2 个答案:

答案 0 :(得分:2)

似乎这样做了诀窍:

[self.row.cellConfigAtConfigure setObject:@(3) forKey:@"textLabel.numberOfLines"];

答案 1 :(得分:0)

这对我有用:

form +++= TextRow() {
            $0.cell.textLabel?.numberOfLines = 0
            $0.title = "Some long string that doesn't fit iPhone 5 screen width"
            $0.placeholder = "Provide your answer"
        }
相关问题