Ramotion / elongation-preview

:octocat: ElongationPreview is an elegant UI push-pop style view controller. iOS library made by @Ramotion

Home Page:https://www.ramotion.com/ios-mobile-app-development-ui-library-for-interaction-with-cards/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replaced the GridViewCell with my own custom cell but can't connect to my cell to start populating data in my labels

JuanyboyFresh opened this issue · comments

Replaced the GridViewCell with my own custom cell but can't connect to my cell to start populating data in my labels. Get error value type 'UITableViewCell' has no member 'loreLabel'

import UIKit
import ElongationPreview

class DetailViewController: ElongationDetailViewController {

var datasource: [ChampionLore] = ChampionLore.loreData

override func viewDidLoad() {
    super.viewDidLoad()
    tableView.backgroundColor = .black
    tableView.separatorStyle  = .none
    tableView.register(UINib(nibName: "AllTableViewCell", bundle: nil), forCellReuseIdentifier: "AllTableViewCell")
}

override func tableView(_: UITableView, numberOfRowsInSection _: Int) -> Int {
    return 1
}
   
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "AllTableViewCell")!
    
    let loreInfo = datasource[indexPath.row]
    cell.loreLabel.text = loreInfo.lore
    
    return cell
}

}