Some favorite site feeds aggregated locally: iPhone Development RSS   Adobe Labs RSS   Macrumors RSS

Friday, August 14, 2009

iPhone: loadView and viewDidLoad

Friday, August 14, 2009   

I am not sure the exact cause (threads?) but I tried something today where I am setting up and running network detection status in loadView, setting a variable, and in my viewDidLoad checking that variable and then running some streaming stuff.

When I had the network detection stuff in loadView, my app would launch, go to black, and then the screen would go white... no error in the debugger... it would just stop and I'd get a blank white screen.

So I move it all into the viewDidLoad and everything behaves well now.

Does anyone know what might actually be causing this problem? I know what not to do, but I don't know why.

Labels:

 
 Return to the main page
Comments:

There are currently 0 Comments:

 Leave a comment