0

I'm using this to dismiss the view controller.

[self dismissViewControllerAnimated:YES completion:nil];
self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
self.view.alpha = 0.0;
[UIView animateWithDuration:0
                 animations:^{self.parentViewController.view.alpha  = 1.0;}];
self.parentViewController.view.alpha = 1.0;

But it is still displaying the white screen before it displays the view controller and I have even changed all my components to a different colour to see if it was a component but the screen stayed white.

user1898829
  • 3,437
  • 6
  • 34
  • 62

1 Answers1

0

check out this code:-

self.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentModalViewController:modalVC animated:YES];
Vizllx
  • 9,135
  • 1
  • 41
  • 79