How to make dissolve animation on changing views on iphone?

前端 未结 4 567
孤城傲影
孤城傲影 2020-12-28 20:07

How to make dissolve animation on changing views in iphone?

Dissolve effect: one view is changing another without any movement.

Thanks a lot for the help!

4条回答
  •  醉酒成梦
    2020-12-28 21:09

    You can also use UIViewAnimationOptionTransitionCrossDissolve in ios5 and later...

    [UIView transitionFromView:currentView
                        toView:nextView
                      duration:2
                       options:UIViewAnimationOptionTransitionCrossDissolve 
                    completion:^(BOOL finished) {
                        [currentView removeFromSuperview];
                        }];
    

提交回复
热议问题