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.
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: iPhone
Comments:
There are currently 0 Comments: