开发者

Download animation popup iPhone

For my application I am downloading some data, how could I get a nice downloading popup with animation and without button that will go away automatically when download i开发者_运维问答s finished.

Greetings


Use MBProgressHUD:

https://github.com/jdg/MBProgressHUD

Of course show/hide of it depends on your app logic.


use UIProgressView and set UIProgressViewInst.progress = so_far_downloaded/total_download.

Keep updating the progress value as download progresses and hide it once download is finished.

thumbs_download_progress = [[UIProgressView alloc] initWithFrame:CGRectMake(60, 120, 200, 50)];
thumbs_download_progress.progressViewStyle = UIProgressViewStyleDefault;
thumbs_download_progress.progress = 0.0f;
[self addSubview:thumbs_download_progress];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜