onevcat пре 10 година
родитељ
комит
a571efa688
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Kingfisher/ImageDownloader.swift

+ 4 - 0
Kingfisher/ImageDownloader.swift

@@ -150,6 +150,8 @@ public extension ImageDownloader {
     - parameter URL:               Target URL.
     - parameter progressBlock:     Called when the download progress updated.
     - parameter completionHandler: Called when the download progress finishes.
+    
+    - returns: A downloading task. You could call `cancel` on it to stop the downloading process.
     */
     public func downloadImageWithURL(URL: NSURL,
                            progressBlock: ImageDownloaderProgressBlock?,
@@ -165,6 +167,8 @@ public extension ImageDownloader {
     - parameter options:           The options could control download behavior. See `KingfisherManager.Options`
     - parameter progressBlock:     Called when the download progress updated.
     - parameter completionHandler: Called when the download progress finishes.
+
+    - returns: A downloading task. You could call `cancel` on it to stop the downloading process.
     */
     public func downloadImageWithURL(URL: NSURL,
                                  options: KingfisherManager.Options,