rnystrom / RNBlurModalView

Add depth to your alerts.
MIT License
830 stars 143 forks source link

iOS 7 Compiler warning fix line 706 #39

Open appdicted opened 10 years ago

appdicted commented 10 years ago

To fix the compiler warning line 706, just add (img)) after CGImageGetBitmapInfo and you will remove the warning "Implicit conversion..."

// Update to fix iOS 7 warning CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGContextRef ctx = CGBitmapContextCreate(outBuffer.data, outBuffer.width, outBuffer.height, 8, outBuffer.rowBytes, colorSpace, CGImageGetBitmapInfo(img)); CGImageRef imageRef = CGBitmapContextCreateImage (ctx); UIImage *returnImage = [UIImage imageWithCGImage:imageRef];