title: SWIFT Pass data to variable into cell.swift
body: <p>I'm facing a problem on my code.
  I've got a tableview with custom cells
  At this time, everything works fine.</p>
  
  <p>I would like to pass an array (or an id or whatever) to my cell to make some stuff in it.</p>
  
  <p>I've create my var in my cell.swift file
  In my code I'm giving my var a value in my tableview cellForRowAt but when I want to print my data, nothing appends I've 0.</p>
  
  <pre class="lang-swift prettyprint-override"><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {        
      let cell = tableView.dequeueReusableCell(withIdentifier: "question_cell", for: indexPath) as! QuestionsCell                            
      cell.id = 12
  }
  </code></pre>
  
  <p>and in my cell file</p>
  
  <pre><code>var id = Int()
  
  override func awakeFromNib() {
      super.awakeFromNib()
  
      print(id)
  }
  </code></pre>
  
  <p>When I print, I've got the following result : 0</p>
  
  <p>I would like to have : 12</p>
  
  <p>Thank you if you can help me to fix my last problem on this project. Thanks</p>