【发布时间】:2013-11-08 12:29:37
【问题描述】:
我正在创建一个图书阅读器应用程序。在我的应用程序中,我将页面作为来自 Web URL 的图像加载。加载每个图像时,我喜欢在下面显示加载百分比,如
请给我一些建议
【问题讨论】:
标签: ios iphone image-processing uiimageview uiprogressview
我正在创建一个图书阅读器应用程序。在我的应用程序中,我将页面作为来自 Web URL 的图像加载。加载每个图像时,我喜欢在下面显示加载百分比,如
请给我一些建议
【问题讨论】:
标签: ios iphone image-processing uiimageview uiprogressview
我制作了一个非常可定制的开源进度视图,在即将发布的 2.0 版本中将更加如此。您可以在lightdesign/LDProgressView 找到它。请让我知道它是否适合您的需求或如何更改它。
【讨论】:
看看 NSURLConnectionDataDelegate(NSURLConnection 的协议)。 https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLConnectionDataDelegate_protocol/Reference/Reference.html#//apple_ref/occ/intf/NSURLConnectionDataDelegate
你需要实现以下方法:
(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite
为了支持这种行为。
【讨论】: