Set image with url having IOS SDK ID

Hi, I am trying to display images with url in tableview, the problem is that url has authentication, how to display the url of an image that has authentication. The code I tried is below.

[cell.im setImageWithURL:[NSURL URLWithString:@"https://bouxxxx.XXXxtech.net/api/images/products/426/690"] placeholderImage:[UIImage imageNamed:@"botton_orange_up 2.png"]]; 
+4
source share
1 answer

first you send your username and password to your mail method using api, and then authenticate the server with you to receive data from the server and upload the image to tableview to check Apple source code to help you

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

+1
source

Source: https://habr.com/ru/post/1480038/


All Articles