开发者

where to call function for resizing UITableView

开发者 https://www.devze.com 2023-04-04 08:49 出处:网络
I have table where is changing content and i\'d like to call method for changing height of this table.

I have table where is changing content and i'd like to call method for changing height of this table.

from what method i can to call method for resising UITableView to set height to f开发者_如何学Pythonit content??

thx


You don't have to resize the UITableView because it is already a UIScrollView. You only need to add/subtract rows(content). For that, just reload the data as [myTable reloadData]; and the table's size will be handled automatically. If you want to resize the UITableView then assuming that you already have a reference to it, just put the table in a new frame of your choice.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号