implementing UIActivityIndicatorView while NSData dataWithContentsOfURL is downloading
Posted
by padatronic
on Stack Overflow
See other posts from Stack Overflow
or by padatronic
Published on 2010-05-10T15:33:44Z
Indexed on
2010/05/10
15:44 UTC
Read the original article
Hit count: 609
Hi people,
I am downloading an mp3 using NSData dataWithContentsOfURL:url. This takes a while and while the file is downloading the application hangs. I want to handle well and ideal would like to show the download progress but can't find methods for this.
It is in a UIViewController and I have made a first attempt by putting in a UIActivityIndicatorView and start it spinning before I start the download, then stop it spinning after but nothing appears.
So my question really is please could someone tell me what the best way to handle this is? Thanks so much
© Stack Overflow or respective owner