No, your understanding is correct.
You use LoadView
to instantiate the view if you are not using a .xib (i.e. you are creating the programatically).
If you are using a .xib, don't override LoadView
문제
Assuming that I call
protected MyViewController(string nibName, NSBundle bundle) :
base(nibName, bundle) { }
do I still need to
public override void LoadView
{
View = new MyView(...);
base.LoadView()
}
It seems that calling the nib should just make the View. Am I misunderstanding how nibs work?
해결책
No, your understanding is correct.
You use LoadView
to instantiate the view if you are not using a .xib (i.e. you are creating the programatically).
If you are using a .xib, don't override LoadView