Need clarification on loadView()

Hi All,
I am not sure why Apple doc says not to call super() when overriding loadView() in my ViewController. What would be the side effect? Is it just to stop the process of seeking the view?


Hi @pankaj_jha18,
It says as the first line, that you should not call this method directly.

However if you override and have a custom one where you create your views manually, then you should not call the super because the views that you are creating should be unique.

This topic was automatically closed after 166 days. New replies are no longer allowed.