Answers for "ios extension for pop perticuler view controller from navigation viewcontroller array"

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

Code answers related to "ios extension for pop perticuler view controller from navigation viewcontroller array"

Code answers related to "Swift"

Browse Popular Code Answers by Language