skip to Main Content

Can not find indexpath in scope in tableview – Ios swift

import UIKit private let reuseableIdentifier = "cell" class TableViewController: UITableViewController{ override func viewDidLoad() { super.viewDidLoad() tableView.register(UITableViewCell.self,forCellReuseIdentifier: reuseableIdentifier) } override func numberOfSections(in tableView: UITableView) -> Int { // #warning Incomplete implementation, return the number of sections return 0 } override func…

VIEW QUESTION

After tableView scrolled data puts in cells in wrong order – Ios swift

in my View: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "TransactionTableCell", for: indexPath) as! TransactionTableCell let newItem = getTransactionsInSection(section: sectionHeader[indexPath.section])[indexPath.row] cell.configure(item: newItem) } in my TransactionTableCell func configure(item: TransactionModel) { guard let withdrawalBonuses…

VIEW QUESTION
Back To Top
Search