diff --git a/RNGridMenu.m b/RNGridMenu.m index 8a0a1f5..7c08029 100644 --- a/RNGridMenu.m +++ b/RNGridMenu.m @@ -92,7 +92,7 @@ -(UIImage *)rn_boxblurImageWithBlur:(CGFloat)blur exclusionPath:(UIBezierPath *) // create grayscale image to mask context CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceGray(); - CGContextRef context = CGBitmapContextCreate(nil, maskLayer.bounds.size.width, maskLayer.bounds.size.height, 8, 0, colorSpace, kCGImageAlphaNone); + CGContextRef context = CGBitmapContextCreate(nil, maskLayer.bounds.size.width, maskLayer.bounds.size.height, 8, 0, colorSpace, (CGBitmapInfo)kCGImageAlphaNone); CGContextTranslateCTM(context, 0, maskLayer.bounds.size.height); CGContextScaleCTM(context, 1.f, -1.f); [maskLayer renderInContext:context]; @@ -157,7 +157,7 @@ -(UIImage *)rn_boxblurImageWithBlur:(CGFloat)blur exclusionPath:(UIBezierPath *) 8, outBuffer.rowBytes, colorSpace, - kCGImageAlphaNoneSkipLast); + (CGBitmapInfo)kCGImageAlphaNoneSkipLast); CGImageRef imageRef = CGBitmapContextCreateImage(ctx); UIImage *returnImage = [UIImage imageWithCGImage:imageRef];