Answers for "how to add a cell to table view swift"

1

swift scroll to tableviewcell

let indexPath = IndexPath(row: row, section: section)
tableView.scrollToRow(at: indexPath, at: .top, animated: true)
Posted by: Guest on January-12-2021
1

swift uitableview insert cell

self.yourArray.append(msg)

self.tblView.beginUpdates()
self.tblView.insertRows(at: [IndexPath.init(row: self.yourArray.count-1, section: 0)], with: .automatic)
self.tblView.endUpdates()
Posted by: Guest on March-09-2020

Code answers related to "how to add a cell to table view swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language