So I\'m trying out the new UIActivityViewController
in iOS 6, and it\'s really easy to get up and running, but I can\'t figure out how to control it like I want
Updated the answer for Swift 3.0
let url = URL(string: "google.com")
let shareText = "Your string goes here"
let shareItems: [Any] = [shareText, url!]
let activityVC = UIActivityViewController(activityItems: shareItems, applicationActivities: nil)
activityVC.excludedActivityTypes = [.airDrop, .postToFlickr, .assignToContact, .openInIBooks]
self.present(activityVC, animated: true, completion: nil)
Facebook won't accept the string, but, like many other of the social media sites, will show an image/link box for the URL