0

I modally present a view controller, and then present an activity view controller. However when I do, the app crashes with error:

libc++abi.dylib: terminating with uncaught exception of type nsexception ios 10 "self.present"

This is what causes the app to crash:

let vc = UIActivityViewController(activityItems: [shareText], applicationActivities: [])


self.present(vc, animated: true, completion: nil)

I modally present the view controller with just a segue

self.performSegue(withIdentifier: "showContainer", sender: nil)
Chris Jones
  • 856
  • 1
  • 11
  • 24

0 Answers0