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
Post a Comment