This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Description
I'm working with Pinterest's SDK and I can't get a valid NSURL from Amazon S3. I use this code after all the example code provided by the AFAmazonManager cocoapod:
NSURL *resultURL = [s3Manager.requestSerializer.endpointURL URLByAppendingPathComponent:fileName];
This code returns this URL and it appears to be valid: https://phototower.s3.amazonaws.com/2015-11-09%2018:18:53%20+0000.jpg.
The interesting thing is it causes an invalid URL on my device, however, it works correctly in Simulator. How do I ensure my imageURL is valid? Is there a trick for images or am I missing something else?
I did notice when I paste the URL in a browser doesn't open as a web URL. It asks to save the image. Is that what is causing my issue or Is there a setting for Amazon S3 can open images in web URLs?
Any help would appreciated. Thanks in advance.