I’m trying to load an image into an UIImageView from the internet. This is no problem, but what I want is the image be secured with user credentials. So if you go to the direct link of the image, you get an login popup (secured directory).
How can I pass those user credentials so I can load the image from the net with user credentials?
The problem is that the image may not be accessed directly, but only via the iPhone app. If you have a better idea to maximize the security, let me know 😉
Thanks in advance.
If you are using basic server authentication (which I think you are based on the “popup dialog”), I would recommend using ASIHTTPRequest http://allseeing-i.com/ASIHTTPRequest/How-to-use
It makes it very easy to download and make web requests. You can download the image and give the username and password by doing: