Open codegastudio opened 6 years ago
i encounter this problem and some can fix it?
I fixed this by getting the blur radius before entering the background queue:
CGFloat blurRadius = self.blurRadius;
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
UIImage *blurredImage = [self blurredSnapshot:snapshot radius:blurRadius];
dispatch_sync(dispatch_get_main_queue(), ^{
[self setLayerContents:blurredImage];
if (completion) completion();
});
});
I fixed this by getting the blur radius before entering the background queue:
CGFloat blurRadius = self.blurRadius; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ UIImage *blurredImage = [self blurredSnapshot:snapshot radius:blurRadius]; dispatch_sync(dispatch_get_main_queue(), ^{ [self setLayerContents:blurredImage]; if (completion) completion(); }); });
this bug is why? can explain for me。thx
Hi,
With Xcode 9 and device with iOS 11 When i activate blur i get the following message in logger
Possible to try with
Best regards,