save selected row in UITableView after reloadData

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

    SWIFT 3:

    self.collectionView.reloadData()
    self.collectionView.selectItem(at: indexPath, animated: false, scrollPosition: [])
    

提交回复
热议问题