简体   繁体   中英

What's the simplest way to display progress when downloading image data? [Swift]

I'm building a small app that loads random images from a Flickr search. Everything works fine, but since I'm constructing my UIImage using the data constructor, it takes a while for the user to be able to see any changes after imputing their query.

What's the simplest way through which I can evaluate and display the progress of the image data being downloaded?

Many thanks in advance.

UIActivityIndicator-for-SDWebImage is written for famous SDWebImage , which adds functionality of showing activity indicator to it. That may solve your problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM