Can I draw to the same CGContextRef from multiple threads?
问题 I'm making an app where I want to draw a lot of shapes - circles, boxes, lines, etc. Millions of them. To test the performance of this, I threw together this simple UIView. Note that credit is due - I got inspired by this project. import UIKit let qkeyString = "label" as NSString var QKEY = qkeyString.UTF8String let qvalString = "com.hanssjunnesson.Draw" as NSString var QVAL = qvalString.UTF8String public class RenderImageView: UIView { var bitmapContext: CGContext? let drawQueue: dispatch