开发者

How to call EditTable method of UITableView from some other class?

I want to edit UITableView by calling EditTable method on a button click of some other class. In other words, I want to delete rows from UITableview from some other viewcontroller without navigating to that UITableView.

Please tell me the way to achieve this or any sample code for it.开发者_开发问答


If you want to delete rows from a tableview you just need to delete the corresponding rows from the datasource. When the table is next shown it should know how to reload it's data so the changes in the datasource are applied to the table.

Edit

You shouldn't rely on sending messages to view controllers that are deeper in the stack because they may have been unloaded already.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜