UITableView Using Swift

前端 未结 10 1440
温柔的废话
温柔的废话 2020-12-08 07:27

My TapCell1.swift

This is Custom UITableViewCell View

import UIKit

class TapCell1: UITableViewCell
{
    @IBOutlet var         


        
10条回答
  •  有刺的猬
    2020-12-08 08:12

    You should register the class for the cell. For that do change this line of code to

    self.tableView.registerClass(TapCell1.classForCoder(), forCellReuseIdentifier: "Cell")
    

    Edit

    You code is looks fine i checked it

    //cell.labelText.text="Cell Text"
    
    cell.textLabel.text="Cell Text"   // use like this
    

提交回复
热议问题