开发者

where to call function for resizing UITableView

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜