iOS App is crashing on when click on printer screen back button.
opening a PDF file by help of UIDocumentInteractionController. Then clicking on print button on right bar navigation item. then click on select printer screen,when click on back button on select printer screen, App crashed.PFA the screen shots.
documentController = UIDocumentInteractionController(url: urlVal)
documentController.delegate = self
documentController.presentPreview(animated: true)
The crash log:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Override of -navigationBar:shouldPopItem: returned YES after manually popping a view controller (navigationController=)'