1

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

Ahmad F
  • 30,560
  • 17
  • 97
  • 143
  • 1
    What does the crash log say? – Ahmad F Feb 10 '20 at 12:10
  • Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Override of -navigationBar:shouldPopItem: returned YES after manually popping a view controller (navigationController=)' [UINavigationController _popNavigationBar:item:] + 379 5 UIKitCore 0x00007fff46eb5fd9 -[UINavigationBar _sendNavigationPopForBackBarButtonItem:] [_UINavigationBarContentView __backButtonAction – user1458088 Feb 10 '20 at 12:19
  • I'd suggest to fully add it as a part of the question. – Ahmad F Feb 10 '20 at 12:21

0 Answers0