Tutorial by Examples

override func numberOfSections(in tableView: UITableView) -> Int { // You need to return minimum one to show the cell inside the tableview return 1 } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { // return the number of rows i...
For custom tableview cell you need a class that is subclass from UITableViewCell, an example class you can see below. class TableViewCell: UITableViewCell { @IBOutlet weak var lblTitle: UILabel! override func awakeFromNib() { super.awakeFromNib() // Initialization code } overrid...

Page 1 of 1