Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling loadView explicitly -- good/bad?

Is there any harm in calling loadView explicitly?

I have to hit the server and get the data for display and this data will be changed based on some user action on this view. I am making the server call in my loadView method and passing the appropriate parameters. Now when user condition changes, I call [self loadView] with modified parameters. Do you see some issue here?

like image 535
Abhinav Avatar asked Mar 24 '11 23:03

Abhinav


1 Answers

Well I think the Apple documentation says it all:

loadView Creates the view that the controller manages.

-(void)loadView You should never call this method directly.

like image 141
Ken Pespisa Avatar answered Oct 14 '22 10:10

Ken Pespisa