Snippets Collections
// MARK: - Table View

topPlayersTableView.delgate = self
topPlayersTableView.dataSource = self


extension HomeViewController : UITableViewDelegate, UITableViewDataSource {
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 10
    }
    
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = topPlayersTableView.dequeueReusableCell(withIdentifier: "TopPlayerTableViewCell") as! TopPlayerTableViewCell
        return cell
    }
}
  myCartTableView.reloadRows(at: [IndexPath(row: imgView.tag, section: 0)], with: .none)
star

Fri Jan 27 2023 17:21:38 GMT+0000 (Coordinated Universal Time)

#ios #swift #table #tableview #snippet
star

Fri May 13 2022 11:08:14 GMT+0000 (Coordinated Universal Time)

#ios #swift #row #reloadrow #tableview

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension