call progress block regardless of completion block, options
This commit is contained in:
parent
899d67ba54
commit
827fcac89b
|
@ -241,13 +241,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
CFRelease(imageSource);
|
CFRelease(imageSource);
|
||||||
|
}
|
||||||
|
|
||||||
NSUInteger received = self.imageData.length;
|
if (self.progressBlock)
|
||||||
|
{
|
||||||
if (self.progressBlock)
|
self.progressBlock(self.imageData.length, self.expectedSize);
|
||||||
{
|
|
||||||
self.progressBlock(received, self.expectedSize);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue