I have the following code:
let ref:CGContextRef = CGBitmapContextCreate(nil , 200, 130, CGImageGetBitsPerComponent(self.CGImage), 0, CGImageGetColorSpace(self.CGImage), CGImageGetBitmapInfo(self.CGImage))
The problem is that I get this error:
The expression is not of type 'NilLieralConvertible'
What should I pass instead of nil for the first argument and why?
source share