Swift UITableViewのCellを取得する

環境 Xcode11.2.1 Swift5

var tablView = UITableView()

-- 省略 --

func myFunction(){
    //取得したいIndexPathを指定
    let indexPath = IndexPath(row:0 , section: 0)
    let cell = tableView.cellForRow(at: indexPath)
}

取得したいIndexPathを指定してcellを取得してあとは好きなように必要箇所を変更する

あまり使う機会がないので忘れがち