开发者

How to get Rows updated automatically?

开发者 https://www.devze.com 2023-01-17 04:53 出处:网络
HI all, I have made my custom Data Model, custom Data Source and a TTTableViewController which uses my data source, now in data model there we are mentaining the array, if something changes in the da

HI all,

I have made my custom Data Model, custom Data Source and a TTTableViewController which uses my data source, now in data model there we are mentaining the array, if something changes in the datamodel, ui should开发者_StackOverflow社区 auto reflect those change, how this thing can be implemented?


You can send the -reloadData message to the UITableView. Also, there are methods in UITableView to insert/delete particular rows. This also can give you nice animations. Please take a look at the "Table view programming guide" for details.

0

精彩评论

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