遵循于: NSObject
聲明處: SDWebImageManager.h
任務
- imagePrefetcher:didPrefetchURL:finishedCount:totalCount:
- imagePrefetcher:didFinishWithTotalCount:skippedCount:
實例方法
imagePrefetcher:didFinishWithTotalCount:skippedCount:
- (void)imagePrefetcher:(nonnull SDWebImagePrefetcher *)imagePrefetcher didFinishWithTotalCount:(NSUInteger)totalCount skippedCount:(NSUInteger)skippedCount
討論
當所有圖片已經預加載時調用。
參數
imagePrefetcher
當前圖片的預加載。
totalCount
需要預加載的所有圖片的總數。(無論成功與否)
skippedCount
被忽略的圖片的總數。
聲明處
SDWebImagePrefetcher.h
imagePrefetcher:didPrefetcherURL:finishedCount:totalCount:
- (void)imagePrefetcher:(nonnull SDWebImagePrefetcher *)imagePrefetcher didPrefetchURL:(nullable NSURL *)imageURL finishedCount:(NSUInteger)finishedCount totalCount:(NSUInteger)totalCount
討論
當一張圖片被預加載時調用。
參數
imagePrefetcher
當前圖片的預加載。
imageURL
被預加載的圖片url。
finishedCount
已經預加載的圖片總數。(成功或者失敗都算)
totalCount
準備預加載的圖片總數。
聲明處
SDWebImagePrefetcher.h
// END 寫代碼能夠寫到幾歲呢。35歲,40歲,還是寫到老。 怎么努力,很是緊張。