I have an application in which I am performing segue while closing the current view controller. I am using like this:
This crashes the application saying that maybe this controller was never visible. But if I comment the DismissViewController(this); , then it works fine.
Any help is appreciated. Thanks in advance.