Downloading images from Parse iOS

后端 未结 5 648
-上瘾入骨i
-上瘾入骨i 2021-01-06 16:50

I\'m writing an application that allows the users to take and store images on Parse. Thus far I\'ve managed to accomplish saving the image array to Parse by using the follo

5条回答
  •  灰色年华
    2021-01-06 17:15

    All the above solutions are correct, but want to add one another way to have support of Image Caching of SDWebImage or any library like that. On Successful completion you will be have PFFile, whose property "url" will return you actuall URL of Image where it is saved. You can use that to load image. Using this approach I was able to have Image Cacheing based on key as URL.

    ...
    NSString *strUrl = pfFileObject.url;
    ...
    ...
    [img sd_setImageWithURL:[NSURL URLWithString:strUrl]];
    

提交回复
热议问题