Reputation: 93
Can you please let me know what is the best way to display a long text in the app? I would like to display text about the company. Now I do have tableView and inside of the cell just a normal UILabel. Is it ok? Thanks!
Upvotes: 1
Views: 1075
Reputation: 5712
Yes, its ok to display long text in the UILabel. In Label you can also use attributed string in case you need anytime. You need to make sure dynamic height of the table row with the UILabel content. Use 0 as number of lines for the UILabel and TextWrap as the Line break option. Make sure you have good constraints for your label in the cell row.
Upvotes: 2