func scroller() {
let delay = 0.1 * Double(NSEC_PER_SEC)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
if self.chatMessages.count > 0 {
let lastRowIndexPath = IndexPath(forRow: self.chatMessages.count - 1, inSection: 0)
self.tblChat.scrollToRowAtIndexPath(lastRowIndexPath, atScrollPosition: UITableViewScrollPosition.Bottom, animated: true)
}
}
}
我收到一个错误,它说 Argument labels '(forRow:, forSection:) 不匹配任何可用的重载,有帮助吗?