I have developed an application that fetches the feed from a sever, displays the list of feed and on selection of a particular feed, options for sharing to twitter or Facebook is displayed. On selecting one social network, user is able to upload that.
Until this it is fine.
But now I am stuck with an issue. The php i am parsing to fetch the feed has links for some images. I want to take the first five images from the php and display in UIImageView. This also should be auto-updated as and when the new contents are uploaded.
Please let me know how can I do it.
Since, I have a bit of urgency, a demo code will be very useful for me.
Lets say you are getting url of your image from php.
This will populate your
imageView. If you receive any updates from backend, repeat this piece of code & you should be good…If you want some image caching too the as Shubhank suggests SDWebImage is a good option.