Could anyone help me solve the problem called:
" LaunchServices: invalidationHandler called" displays whenever I press a certain BarButtonItem
, below is the code snippet in SWIFT.
@IBAction func btShared(sender: UIBarButtonItem) {
let myActivity: UIActivityViewController =
UIActivityViewController(activityItems: [url], applicationActivities: nil)
myActivity.excludedActivityTypes = [UIActivityTypeCopyToPasteboard]
self.presentViewController(myActivity, animated: true, completion: nil)
}