iphoneobjective-cviewdidloadloadview

viewDidLoad(), LoadView()


What is the difference between viewDidLoad() and LoadView()? In what way are they different from each other?

Which one is better when we develop applications without using XIB ?

Thanks .


Solution

  • If you are developing applications without using xib LoadView() method is called and if there is an xib then ViewDidLoad method is called

    So it is better to use LoadView method.