save selected row in UITableView after reloadData

后端 未结 14 1007
后悔当初
后悔当初 2020-12-24 11:20

I write custom jabber client in iphone.

I use xmppframework as engine.

And I have UITableViewController with NSMutableArray for repesent contact list.

<
14条回答
  •  执念已碎
    2020-12-24 12:04

    It sounds like you are not using a 'model' for the data - rather simply updating the 'view' (user interface), and thus is probably a bad design.

    reloadData should cause the view to be updated with data from the model, which should contain the most current data to be displayed.

    search for resources on the 'model view controller pattern'

提交回复
热议问题