title: iOS 8.1 Swift UIActivityViewController does not show social media share (Facebook, twitter, WhatsApp etc)
body: <p>I'm trying to link sharing functionality into my swift app but am having a problem. 
  I'm using UIActivityViewController to share an image and text, but the only options available are these: </p>
  
  <p><img src="https://s11.postimg.org/m35ftbsur/IMG_0019.png" alt="Share options"></p>
  
  <p>I would like the options for Facebook, Twitter and Whatsapp (and the rest!) but I can't figure out what I'm doing wrong. </p>
  
  <p>I have also tried other code/ source projects but I'm having the same problem, however if I go on safari on the device it does offer the missing social media options on the share sheet. </p>
  
  <p>Here is my code: </p>
  
  <pre><code>func shareTextImageAndURL(#sharingText: String?, sharingImage: UIImage?, sharingURL: NSURL?) {
      var sharingItems = [AnyObject]()
  
      if let text = sharingText {
          sharingItems.append(text)
      }
      if let image = sharingImage {
          sharingItems.append(image)
      }
      if let url = sharingURL {
          sharingItems.append(url)
      }
  
      let activityViewController = UIActivityViewController(activityItems: sharingItems, applicationActivities: nil)
  
      activityViewController.excludedActivityTypes = [UIActivityTypeAirDrop, UIActivityTypeAddToReadingList]
  
  
      if(activityViewController.popoverPresentationController != nil) {
          activityViewController.popoverPresentationController?.sourceView = self.view;
          var frame = UIScreen.mainScreen().bounds
          //            frame.height = frame.height / 2
          var newFrame = CGRect(x: frame.origin.x, y: frame.origin.y, width: frame.width, height: frame.height / 2)
          activityViewController.popoverPresentationController?.sourceRect = frame;
      }
  
      self.presentViewController(activityViewController, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>Calling the method with: </p>
  
  <pre><code>var image = UIImage(named: "icon_messages.png")?
  
      shareTextImageAndURL(sharingText: "Hello this is a test", sharingImage: image, sharingURL: NSURL(string: "http://www.example.com/"))
  </code></pre>
  
  <p>My device is an iPhone 4s running iOS 8.1. </p>
  
  <p>Here is the other code I tried (to the same effect:)</p>
  
  <pre><code>http://stackoverflow.com/questions/28169192/ios-swift-uiactivityviewcontroller-completion-handler-returns-success-when-tweet
  </code></pre>
  
  <p>And this sample project:</p>
  
  <pre><code>ttp://www.dvdowns.com/uiactivityviewcontroller/
  </code></pre>
  
  <p>Does anyone have ANY idea what could be going on here? 
  Thanks in advance! </p>