iPhone - Splash Screen with progress bar

后端 未结 4 670
逝去的感伤
逝去的感伤 2020-12-16 08:09

I tried to create a SplashView which display the Default.png in the background and a UIProgressBar in front. But the splash screen is not being updated...

Inside my

4条回答
  •  既然无缘
    2020-12-16 08:28

    The main thread is, as far as I know, the only one that can safely do GUI things, and its event loop (that is, the main application thread's) is the one that does the actual displaying after you've called -setNeedsDisplay. Spawn a new thread to do your loading, and update the progress on the main thread.

提交回复
热议问题