Which should I use, -awakeFromNib or -viewDidLoad?

AwakeFromNib is called when the controller itself is unarchived from a nib viewDidLoad is called when the view is created/unarchived. This distinction is especially important when the controller's view is stored in a separate nib file.

AwakeFromNib is called when the controller itself is unarchived from a nib. ViewDidLoad is called when the view is created/unarchived. This distinction is especially important when the controller's view is stored in a separate nib file.

Yes, it's correct. You shouldn't really rely on awakeFromNib to do that kind of tasks. AwakeFromNib is similar to an event that's called after deserialization in .NET.

ViewDidLoad is similar to Load event in .NET. If you are familiar with the concepts from . NET, this should be enough, I think.

Also important is that the awakeFromNib function will never be called after recovering from memory warning. But, viewDidLoad function will be called.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions