I am having trouble getting my modal view controllers to display properly. I have a parent view controller that is the delegate for modal view A. In modal v
in Swift 2.1
you can try
self.presentingViewController?.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
works for me
View A -> View B -> View C
Apply this code in view C , you will be landing to View A