difference between awakeFromNib() and viewDidLoad() in swift

From Apple documentation: awakeFromNib: The nib-loading infrastructure sends an awakeFromNib message to each object recreated from a nib archive, but only after all the objects in the archive have been loaded and initialized. When an object receives an awakeFromNib message, it is guaranteed to have all its outlet and action connections already established. See: Nib … Read more

When does awakeFromNib get called?

awakeFromNib gets called after the view and its subviews were allocated and initialized. It is guaranteed that the view will have all its outlet instance variables set. EDIT: A detailed recount of events: During the instantiation process, each object in the archive is unarchived and then initialized with the method befitting its type. Cocoa views … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)