objective c - imageWithContentsOfURL Check if image is valid -


i using following code obtain image url , display in uiimageview

how can check url passing has returned valid image? (i.e image exists?)

nsurl *imageurl = [nsurl urlwithstring:stringurl]; myimage.image = [uiimage imagewithcontentsofurl:imageurl]; 

this looks answered in: uiimageview-image-using-a-url

if not sufficient take @ nice asynchronous capabilities offered afnetworking.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -