iOS 13 App Crashing on back button UIPrintPanelNavigationController

371 Views Asked by At

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=)'

0

There are 0 best solutions below