1

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Andrew Johnson
  • 13,108
  • 13
  • 75
  • 116
  • Here's what I did: [http://stackoverflow.com/questions/1370953](http://stackoverflow.com/questions/1370953) – mahboudz Sep 19 '09 at 00:21

1 Answers1

1

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
  • 12,721
  • 2
  • 26
  • 23