开发者

Download animation popup iPhone

开发者 https://www.devze.com 2023-04-04 22:53 出处:网络
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.

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

精彩评论

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