|
|
button.kf.setImage(with: url, for: UIControlState.highlighted, placeholder: nil, options: nil, progressBlock: { (receivedSize, totalSize) -> () in
|
|
button.kf.setImage(with: url, for: UIControlState.highlighted, placeholder: nil, options: nil, progressBlock: { (receivedSize, totalSize) -> () in
|
|
|
}) { (image, error, cacheType, imageURL) -> () in
|
|
}) { (image, error, cacheType, imageURL) -> () in
|
|
|
XCTAssertEqual(error?.code, NSURLErrorCancelled)
|
|
XCTAssertEqual(error?.code, NSURLErrorCancelled)
|