save selected row in UITableView after reloadData

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

    On iOS 9.3 and Swift 2.x, I simply had to call the function on the main thread :)

    self.tableView?.selectRowAtIndexPath(indexPath, animated: false, scrollPosition: .None)
    

提交回复
热议问题