XLForm Cell numberOfLines

820 Views Asked by At

Any pros out there using XLForm and have any idea on how to configure the cell such that the textLabel.numberOfLines can be changed to 2? I have a very long string that cannot fit in 1 line.

Any suggestions or thoughts is really appreciated! Thank you very much in advance!!! =D

2

There are 2 best solutions below

1
On BEST ANSWER

Seems like this did the trick:

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

This did the trick for me:

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"
        }