objective-c - How to cancel the view's color dimming problem when transitionWithView flips UIView?
三叔
三叔 2017-06-21 10:11:50
0
1
1040

If you want to make an animation similar to flipping the front and back of a card, using the transitionWithView method of UIView will cause the color of the flipped view to darken. If the background color of the view is white, there will be flickering and black when flipping. Regarding the problem of the center line, the effect is very poor. Please give me some advice from all the experts...

[UIView transitionWithView:cardView duration:0.8f options:UIViewAnimationOptionTransitionFlipFromLeft animations:^{
        [cardView exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
    } completion:NULL];
三叔
三叔

reply all(1)
过去多啦不再A梦
    [UIView transitionFromView:self.aView toView:self.bView duration:0.5 options:UIViewAnimationOptionTransitionFlipFromLeft completion:^(BOOL finished) {
        // do something such as hidden or remove
    }];
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!