title: UIActivity activityViewController crash on iPad in Swift
body: <p>I have the following code below to toggle UIActivityViewController</p>
  
  <pre><code>@IBAction func shareButtonClicked(sender: UIButton)
  {
      let textToShare = "Text"
  
      if let myWebsite = NSURL(string: "http://www.example.com/")
      {
          let objectsToShare = [textToShare, myWebsite]
          let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
  
          self.presentViewController(activityVC, animated: true, completion: nil)
      }
  }
  </code></pre>
  
  <p>But it crashes on iPad. How do I present it modally in Swift?</p>