Thread with 3 posts

jump to expanded post

but there's an inefficiencyโ€ฆ an empty view that draws nothing will get a whole bitmap and corresponding CGBitmapContext allocated for it, because my UIView provides drawLayer:inContext: (which calls drawRect:). ideally I'd only do this if drawRect: isn't overridden, and I can only assume that's what Apple do. but how do they do that? there isn't a documented mechanism for this. does their CALayer have special knowledge of UIView? ๐Ÿค”

Open thread at this post