let group = DispatchGroup()
let queue = DispatchQueue.global()
group.enter()
queue.async {
DispatchQueue.main.async {
self.textList.reloadData()
group.leave()
}
}
group.notify(queue: queue) {
DispatchQueue.main.async {
self.textList.scrollToRow(at: IndexPath(row: self.dataSource.count - 1, section: 0), at: .bottom, animated: false)
}
}
网友评论