Guest User

Untitled

a guest
Jun 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. override func viewDidLoad() {
  2. super.viewDidLoad()
  3. tableView.register(SomeTableViewCell.self, bundle: nil), forCellReuseIdentifier: "\(SomeTableViewCell.self)")
  4. // tableView.register(UINib(nibName: "\(SomeTableViewCell.self)", bundle: nil), forCellReuseIdentifier: "\(SomeTableViewCell.self)")
  5. }
  6.  
  7. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  8. let cell = tableView.dequeueReusableCell(SomeTableViewCell.self, for: indexPath) as! SomeTableViewCell
  9. return cell
  10. }
Add Comment
Please, Sign In to add comment