1

I am trying a Share Extension that iOS provides. Having trouble while getting UIImage from gallery host.

The image is is not in appropriate orientation. Any suggestion how can i get proper image from Photos as host to Share extension. I am using loadItemForTypeIdentifier of NSItemProvider to get image object. Kindly help, thanks in advance.

Jagat Dave
  • 1,643
  • 3
  • 23
  • 30
Sagar In
  • 591
  • 1
  • 4
  • 8
  • I had a image-orientation problem a while back. This helped me: http://stackoverflow.com/questions/5427656/ios-uiimagepickercontroller-result-image-orientation-after-upload – David Schmoecker May 23 '16 at 10:39
  • David the solution you have provided is quite helpful, but does category works with extension? – Sagar In May 23 '16 at 10:45
  • Check out the second answer by an0. The swift version of that function was working great for me. – David Schmoecker May 23 '16 at 11:58
  • 1
    Thanks @DavidSchmoecker your answer does work for me and category too works in Extension thanks a lot :) – Sagar In May 23 '16 at 12:53

0 Answers0