How to prevent modal view controllers flashing when changing
Posted
by KP Overflow
on Stack Overflow
See other posts from Stack Overflow
or by KP Overflow
Published on 2010-04-22T20:11:32Z
Indexed on
2010/04/22
20:13 UTC
Read the original article
Hit count: 278
I have three view controllers, let's call them A, B and C.
When a button is pressed on view A, view B is shown using presentModalViewController:animated:
When the finish button is pressed on screen B, it dismisses itself. View A is notified whereupon it immediately shows view C, again using presentModalViewController:animated:
The problem is that view A's content is momentarily flashed on the screen between view B closing and view C opening.
I can get around this by making view A blank and moving it's current content to a new view, D.
(For various reasons, I don't want view B to own view C, that's why it's not opening it)
Am I over-complicating this? I'm sure there is a smarter way to go?
ThanksT
© Stack Overflow or respective owner