title: Swift - Impossible to use "registerNib" on my tableView to add a custom cell
body: <p>I'm just figuring out how to add custom cells to a tableView in Swift. I watched a lot of tutorials and they all say at some point to use something like <code>tableView.registerNib</code> which is not working for me !</p>
  
  <p>This is the code I'm using in my tableViewController class :</p>
  
  <pre><code>var nib = UINib(nibName: "ViewExerciceCell", bundle: nil)
  tableView.registerNib(nib, forCellReuseIdentifier: "ExerciceCell")
  </code></pre>
  
  <p>When I try to build, I have an error on the second line which says : </p>
  
  <blockquote>
    <p>Cannot invoke 'registerNib' with an argument list of type '(UINib,
    forCellReuseIdentifier: String)'.</p>
  </blockquote>
  
  <p>What can I do ? All the tutorials and other answers about custom cells are using this code.</p>
  
  <p>Thanks in advance </p>