In TwUI
, there is a method called redraw
on TUIView
. It forces the view to redraw, but it also comes with a free fading animation between the old and new state of the view.
I'm wondering if something like that is possible in a normal UIView
. Basically, how can I redraw the view (setNeedsDisplay
) with a fading animation between the old and the new states?
How about using a cross-dissolve UIView transition?
Use
+[UIView transitionWithView:duration:options:animations:completion:]
with theUIViewAnimationOptionTransitionCrossDissolve
option, and inside the animation block, force the view's layer to redraw its contents immediately.