title: Swift UIPasteboard not copying PNG
body: <p>My problem is really odd. In the simulator the .png copies to clipboard fine and I can paste the image in the Contacts app on Simulator. But when I put the app on the phone, the png is not copied to clipboard. </p>
  
  <pre><code>let img = UIImage(named: "myimage")
  let data = NSData(data: UIImagePNGRepresentation(img) )
  UIPasteboard.generalPasteboard().setData(data, forPasteboardType: "public.png")
  </code></pre>
  
  <p>That's the code I'm using but like I said it does not copy to the clipboard. I'm using this code within the context of a keyboard, although that shouldn't matter when copying to a clipboard. If anyone has any ideas please let me know. Thanks in advance! Oh this is my first app in Swift and my first iOS app, so I don't have the seasoned experience to know if this is a Swift issue or something I'm just missing. =\</p>