title: UIActivityViewController UIActivityViewControllerCompletionWithItemsHandler
body: <ul>
  <li>List item</li>
  </ul>
  
  <p>Using Swift for an app that runs in iOS 8, I need to write a completion handler for the <code>UIActivityViewController</code> to capture the results of which "share" method a user selected.</p>
  
  <p>This is a snippet of the code I have so far. My question is how to I set the <code>avc.completionWithItemsHandler</code>? I'm sure it's simple, but I don't see it.</p>
  
  <pre><code>var activityItems = NSMutableArray()
  activityItems.addObject("Email or text for 'share' goes here")
  
  var avc = UIActivityViewController(activityItems: activityItems, applicationActivities: nil)
  avc.setValue("Subject for Email", forKey: "Subject")
  
  avc.completionWithItemsHandler = //Here is where I dont know what to do.
  
  self.navigationController?.presentViewController(avc, animated: true, completion: nil)
  </code></pre>