How to use the progress bar to show the loading of the iphone app?

Before the application loads, the Default.png is displayed in order until a progress bar appears in the next window. Then the application view will be displayed Please enter an example code? Hope you got it all :)

Thank.

+2


source to share


1 answer


The first thing you can start drawing is your AppDelegate, in appDidFinishLoading. You might want to set a progress bar, perhaps on the UIImageView that is using your Default.png. You can also create a timer task to add a little bit to your progress bar, either every second or millisecond, or you can have a counter that you increment as you initialize various pieces of code and the timer job can use that counter to update the indicator execution. Before you show the final view of the application, draw the final part of the progress bar and wait a second for the user to see it.



+1


source







All Articles