ios - awakeFromNib method is getting called twice UITableViewCell -


i using xib create uitableviewcell in view controller. registered cell class table view follows:

self.tableview.register(uinib(nibname: "thisweekcell", bundle: nil), forcellreuseidentifier: "thisweekcellidentifier")

in cellforrowat indexpath method dequeuing cell follows:

tableview.dequeuereusablecell(withidentifier: "thisweekcellidentifier") as! thisweekcell

when dequeuing cell, cell's awakefromnib method getting called twice. in first call outlet properties set in second call nil.

the problem facing is: none of constraints set in xib file getting reflected when displaying cell.constraints cell enter image description here


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -