What is the difference between loadView and viewDidLoad?
问题 I know there is a seemingly exact duplicate of this question here: iPhone SDK: what is the difference between loadView and viewDidLoad? However, I have read that question and still it was not fully answered. I'm not using IB as the UI is dynamic. So should I create the self.view and then add the subviews in loadView , or should I create the self.view in loadView and add the subviews in viewDidLoad ? 回答1: When you load your view from a NIB and want to perform further customization after launch