Only two rows of 12 items are displayed vertically in the first section or first column from myarray.
The functions should display 6 Sections or Columns by 180 rows.from myarray.
Exp.
myarray = [180]
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// Displays 1st 12 headers or 1at 12 details vertically
return L // 180 for a previous array build
//return 1 Displays same number
// return myarray.count Always zero
} // end section
func numberOfSections(in tableView: UITableView) -> Int {
return 6 // 6 Sections or Columns, Displays one section vertically, 12 items
} // end sections
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "customcell", for: indexPath) as UITableViewCell
// Displays the 1st two rows in the first section, 12 items
cell.textLabel?.text = myarray[indexPath.item]
return cell
} // end cell for row