save selected row in UITableView after reloadData

后端 未结 14 1028
后悔当初
后悔当初 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:13

    The workaround is to use reloadSections: instead of reloadData. For some reason reloadData removes the current selection.

提交回复
热议问题