views:

74

answers:

2

Is there some convention I need to follow to avoid this?

I thought maybe I needed to move the frame declarations out of my init functions.

I thought I could also perhaps avoid this by rendering a transparent overlay until the screen has finished loading, and then remove it. But that seems like a hack.

+1  A: 

Depending on your situation, you could disable the UI elements that allow for user interaction until the view has completely loaded.

If you're targeting the 3.0 SDK, you can use UIViewController:isViewLoaded to determine if the view has been loaded. Once loaded, you can re-enable user interaction on your buttons.

shek
A: 

Here's what I did:

http://stackoverflow.com/questions/1370953

mahboudz