Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewDidLoad() {
- super.viewDidLoad()
- tableView.register(SomeTableViewCell.self, bundle: nil), forCellReuseIdentifier: "\(SomeTableViewCell.self)")
- // tableView.register(UINib(nibName: "\(SomeTableViewCell.self)", bundle: nil), forCellReuseIdentifier: "\(SomeTableViewCell.self)")
- }
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- let cell = tableView.dequeueReusableCell(SomeTableViewCell.self, for: indexPath) as! SomeTableViewCell
- return cell
- }
Add Comment
Please, Sign In to add comment