How can I make an UIImageView load an image, but the URL is on a UILabel?
More explanation: I have a UILabel containing an image web address, so I want this address to load an image on the UIImageView. I suppose it involves some encoding but I have no idea how to do this. Please help!
Add the above image on your UIImageView:
EDIT: Go here and read up on the “Categories” section. The sample method there checks if your string is a URL with a http:// prefix to it. Use that and if it returns NO, just add the string “http://” as a prefix to yourlabel.text and then pass it above instead of yourlabel.text
And yes as the link says, its just basic URL detection that just verifies if the string has been prefixed with http://
Sample code: A simple window based app