samedi 1 août 2015

Set TableView height by the number or rows

I have got TableView in the MainstoryBoard and the number of rows is random every time. I want the height of the whole TableView to be flexible - by that I mean, for example: if I got 4 rows in the TableView and each TableView row height is 22 so the TableView height will be 88. Another example: number of rows: 2 row height = 22 TableView will be 44.

How can I make it?

Aucun commentaire:

Enregistrer un commentaire