Skip to content

Commit 104cdf2

Browse files
authored
Merge pull request #82 from tony-yan-yu/update-fix
Update FastttCamera.m to silence UI warning
2 parents e22e0b8 + ad90bd3 commit 104cdf2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

FastttCamera/FastttCamera.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,10 @@ - (void)_processImage:(UIImage *)image withCropRect:(CGRect)cropRect maxDimensio
607607
[capturedImage scaleToMaxDimension:maxDimension
608608
withCallback:scaleCallback];
609609
} else if (fromCamera && self.scalesImage) {
610-
[capturedImage scaleToSize:self.view.bounds.size
611-
withCallback:scaleCallback];
610+
dispatch_async(dispatch_get_main_queue(), ^(void) {
611+
//Run UI Updates
612+
[capturedImage scaleToSize:self.view.bounds.size withCallback:scaleCallback];
613+
});
612614
}
613615

614616
if (fromCamera && !self.isCapturingImage) {

0 commit comments

Comments
 (0)