Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
376 views
in Technique[技术] by (71.8m points)

iphone - App Loading and Splash Screen

My app downloads quite a lot of data, which takes about a few seconds. My splash screen displays and then disappears and then a white blank screen appears for a few seconds before the first view is loaded. Is there a way to keep the splash screen appearing? Is it okay to create a view in the AppDelegate and keep it displayed until all the data loading has been completed and the view is about to load?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Use MBProgressHUD You can get the whole source code here.

https://github.com/jdg/MBProgressHUD

Hope this helps.

This is a Loading View which is Activity Indicator.

EDIT:

You can add your background view into window while your data is being downloaded in background using

[window addSubview:<backgroundView>.view];

Then once data is downloaded, you can remove the same from window and add your main view controller into window

[<backgroundView>.view removeFromSuperView];
[window addSubview:<mainView>.view];

Hope this helps you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...