IPhone - Do something while displaying a splash screen

OK. I know how to display a screensaver on an iPhone. It seems quite simple (i.e. setting the Default.png command and calling "sleep").

But is the application really doing something at this time? My application should go and get some data from the Internet before showing the first screen of the application, but when I make the splash screen, it does not look like it does, showing the splash screen.

Can I make the application do something by showing a splash screen?

+3
source share
5 answers

It would be best to structure your application in a slightly different way.

Default.png (.. UIImageView ), .

( , NSTimer , , ), .

+4

, "sleep" Default.png, , ? Default.png , . . . . , , , , Default.png .

+2

, , . , " ", 3 .

+1

" ", , Default.png . "" , . , ( ).

, , , , spinner , , , "" , .

+1

As a rule, all calls in awakeFromNib view mode are made during application loading (i.e., it has a splash screen). When I put breakpoints in my applications when awakeFromNib calls, breakpoints hit when the screen pops up and the application loads. So, everything that you do in these calls will be processed during loading of the loading screen.

+1
source

Source: https://habr.com/ru/post/1762283/


All Articles