1
@IBAction func shareButtonClicked(sender: UIButton) {
let textToShare = "Swift is awesome!  Check out this website about it!"

if let myWebsite = NSURL(string: "http://www.codingexplorer.com/") {
    let objectsToShare = [textToShare, myWebsite]
    let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)

    activityVC.popoverPresentationController?.sourceView = sender
    self.presentViewController(activityVC, animated: true, completion: nil)
}
}

Hi, I add sms sharing to my app, everything works fine except I'd like to be able to CANCEL an SMS after I started it. No cancel Button is displayed in the uinavigationbar for SMS while it is present for Mail, Twitter or Facebook.

Thanks for your help

enter image description here

Vassily
  • 899
  • 2
  • 8
  • 19
  • Do you have any code that modifies the `UINavigationBar` or something related to it? – rckoenes Jul 21 '16 at 09:43
  • `[UINavigationBar appearance]` in your code refer link :[same issue](http://stackoverflow.com/questions/35076369/facebook-uiactivityviewcontroller-is-missing-the-cancel-and-post-buttons) – Chandan Jul 21 '16 at 09:46
  • Hi, So I checked appearence of UINavigation bar but still the button is missing. When debbuging in view hierarchie, button doesn't seem to exist. – Vassily Jul 22 '16 at 13:03
  • I found where this bug came from I had this pod in my project : https://github.com/kingiol/KDInteractiveNavigationController – Vassily Aug 12 '16 at 13:31

0 Answers0