Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Hello i am trying to display images from url in tableview,the problem is that url is having authentication,how to display image url having authentication.Code i tried is given below.

 [cell.im setImageWithURL:[NSURL   
 URLWithString:@"https://bouxxxx.XXXxtech.net/api/images/products/426/690"] 
 placeholderImage:[UIImage imageNamed:@"botton_orange_up 2.png"]];  
share|improve this question
 
Below is one Github library: github.com/nicklockwood/AsyncImageView That might help you –  Impossible May 10 at 4:40
 
i also have have to pass certificate also to the request .any ideas....stuck for a while now...? –  suraj k thomas May 13 at 4:42

1 Answer

first you send your username and password in your post method with api and then server authentication with you to get data from server and load image in tableview check out the apple source code its help you

http://developer.apple.com/library/ios/#samplecode/LazyTableImages/

share|improve this answer
 
Thanks but my problem is just with authentication.the url given above uses an authentication key which i have with me to open normally,but how to give authentication to such a command. –  suraj k thomas May 10 at 13:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.