Redrawing a UIView with a fade animation?

前端 未结 2 612
孤城傲影
孤城傲影 2021-01-30 18:30

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

2条回答
  •  一生所求
    2021-01-30 19:01

    How about using a cross-dissolve UIView transition?

    [UIView transitionWithView:aView 
                      duration:TIME_INTERVAL 
                       options:UIViewAnimationOptionTransitionCrossDissolve 
                    animations:^{
                        // Change the view's state
                    } 
                    completion:^(BOOL finished) {
                        // Completion block
                    }];
    

提交回复
热议问题