0
私はサブクラスが親クラスを継承しますがサブクラスはtableView(: UITableView, cellForRowAt: IndexPath) -> UITableViewCell
プロトコルで初期化するとxibのサブビューが見つかりません行う?iOSサブクラスは親クラスのXibファイルを継承します
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
//let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath)
let firstCell = FirstTableViewCell.init(style: .default, reuseIdentifier: "cell")
firstCell.test.text = "subCell"
return firstCell
}
コードを表示できますか? – Paulw11
コメントにコードを投稿しないでください。 [編集]あなたの質問。 – rmaddy
最初のセルはBaseTableViewCellを継承し、BaseTableViewCellにはxibファイルがありますが、最初のセルには –