I would like to have a UIView
subclass that implements a method similar to setNeedsDisplay
, except that redrawing (i.e., that would usually be called via drawRect:
) will occur in a background thread sometime soonish, rather than at the end of the current update cycle.
It might be called setNeedsAsynchronousDisplay
. Or the existing setNeedsDisplay
could get hijacked and not cause redraw at the end of the cycle, or whatever, as long as it lets the redraw not happen on the main thread blocking screen updating an interaction until its completed.
Until the redraw occurs, the view can continue to use its current drawn representation.
Is something along these lines reasonably doable?
Thanks!