If you use NSURLConnection
to grab a large file (say, 1 MB or greater), you can use a delegate to track intermediate download progress.
Specifically: If you measure the difference in bytes downloaded and the difference in time between calls to the delegate, then you can calculate the ongoing speed in bytes per second (or other time unit).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…