class CustomPortController : UITableViewController { var tableList = [CustomPortVO]() var listSeparated = CustomPortVO() func getDur1Data(){… self.tableList.append(self.listSeparated) print(self.TableList.count) } override func viewDidLoad() { super.viewDidLoad() self.getDur1Data() tableView.reloadData() } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { let row = self.tableList.count print("row value \(row)") return row }}
↧
Answer by Burhanuddin Sunelwala for ios / swift - I can't append tableview cell
↧