Answers for "pop a view controller swift"

2

swift pop to specific view controller

let viewControllers: [UIViewController] = self.navigationController!.viewControllers
for aViewController in viewControllers {
    if aViewController is YourViewController {
        self.navigationController!.popToViewController(aViewController, animated: true)
    }
}
Posted by: Guest on June-04-2020
1

pop the view controller xcode

navigationController?.popViewController(animated: true)
Posted by: Guest on April-11-2020
0

swift pop view controller

navigationController?.popViewController(animated: true)
Posted by: Guest on June-03-2020

Code answers related to "pop a view controller swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language