UIActivityViewController share only text
I want to share just simple text using UIActivityViewController I am using swift, with xcode 6.3 The code is very simple, work great for photos, but not just text, I don't want to include any web URL with the objectsToShare, just clean text Here is the code: var objectsToShare: ["some text to share"]! let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil) //handler for completed task activityVC.completionHandler = {(activityType, completed:Bool) in if !completed { println("cancelled") return } reportCompleted() //report to server it's done. } /