Convert it to RGB, then create a CGImage with it, then paint it in context.
Alternatively, create a CGColorSpace that maps YUV to RGB, then create a CGImage with it and then draw that in context. (I have no idea if this is possible, but you can look at it.)
source
to share