iOS: UITableView cells with multiple lines?

后端 未结 5 1380
既然无缘
既然无缘 2020-12-23 21:42

What\'s the best way to have UITableView cells with multiple lines ? Let\'s say 5.. or 6 ?

Instead of textLabel and la detailTextLabel ? Should I create a custom sty

5条回答
  •  温柔的废话
    2020-12-23 21:59

    There is a method to accomplish this just using storyboard. First, select the cell and go to the attributes section on the right panel. The first option should be 'Style'. Change this from custom to basic. Now, in your cell you should see text that says 'Title'. Double click it and in the right panel you should be able to set the number of lines.

提交回复
热议问题