开发者

Must a spinner be displayed when downloading data?

开发者 https://www.devze.com 2023-02-22 12:27 出处:网络
My app at times downloads some data from my server. When this is happening I pop up some text o开发者_如何学Cn the screen saying \'Down loading data\'. Usually only displays for .5 of a second since t

My app at times downloads some data from my server. When this is happening I pop up some text o开发者_如何学Cn the screen saying 'Down loading data'. Usually only displays for .5 of a second since the amount of data is tiny.

Is this enough for apple or do I need to show some kind of spinner to avoid getting the app rejected. The app isnt blocked by this process, the user can still navigate to other screens in the app etc, so i guess its non-blocking, so I dnt want the spinner on the middle of the screen.

Many thanks for the advise. -Code


You would be completely fine with your implementation described. What I usually do is turn on the network activity indicator when I have small downloading transactions.

Look at the networkActivityIndicatorVisible property of UIApplication


Even if your text would block the app I don't think Apple would reject it, it's just a state which you define and the user has to wait. You are telling the user what the app is doing, which is fine.

If you have a high latency network connection, like gprs, the 0.5 seconds can increase to around 5 seconds easily, so take that into account.

If you want to improve the user experience add a progress bar or an activity indicator. Don't use alert views, they are nagging.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号