I am using XIB to create a UITableviewCell in my view controller. I registered the cell class to table view as follows:
self.tableView.register(UINib(nibName: "ThisWeekCell", bundle: nil), forCellReuseIdentifier: "ThisWeekCellIdentifier")
In cellForRowAt Indexpath method I am dequeuing the cell as follows:
tableView.dequeueReusableCell(withIdentifier: "ThisWeekCellIdentifier") as! ThisWeekCell
When I am dequeuing the cell, the cell's awakeFromNib method is getting called twice. In the first call all the outlet properties are set but in the second call all are nil.
The problem that I am facing is: None of the constraints that I set in xib file are getting reflected when I am displaying the cell.
