2

I use next code.

[UIView transitionFromView:viewA toView:viewB duration:1.0 options: UIViewAnimationOptionTransitionFlipFromLeft
                        completion: ^(BOOL inFinished) {
                            viewB.hidden = NO;
                            viewA.hidden = YES;
                            //do any post animation actions here
                        }];

Transition works OK. I want to set a black background during transition. How can I do this? Please, see the photo:

enter image description here

Mr.Wizard
  • 24,179
  • 5
  • 44
  • 125
Voloda2
  • 12,359
  • 18
  • 80
  • 130

1 Answers1

3

Try with setting the black background color for parent view of animated view.

viewB.superview.backgroundColor = [UIColor blackColor];
Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76