0
hallo das ist mein Code, den ich implementieren UIactivityViewCotroller habe, aber wenn ich mich keine E-Mails und Facebook-AppiOS: Activity funktioniert nicht auf UIactivityViewController
@IBAction func activityView(_ sender: UIButton) {
let text = "This is some text that I want to share."
let textToShare = [ text ]
let activityViewController = UIActivityViewController(activityItems: textToShare, applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self.view
activityViewController.excludedActivityTypes = [ UIActivityType.airDrop, UIActivityType.postToFacebook, UIActivityType.mail ]
self.present(activityViewController, animated: true, completion: nil)
}
klicken sehen, aber ich sehe nicht, dass dieser App was soll ich machen?
dank was genau soll ich ?? Ich habe nicht komplett verstanden – Javad
@Javad Ich habe die Antwort bearbeitet. Ersetzen Sie die Funktion durch diesen Code. Wenn Sie Facebook & Mail in 'excludedActivityType' hinzufügen, wird die Aktivität Facebook & Mail nicht auflisten. – Bali
Haben Sie das Problem gelöst? – Bali