Hi,
Is there a way I can check if there is valid Image in my UIImage object?
Thanks
Hi,
Is there a way I can check if there is valid Image in my UIImage object?
Thanks
It depends on what you mean by a valid image. If you do
[UIImage imageNamed:]
and the image isn't valid, it will return nil, so you can do:
UIImage *myImage = [UIImage imageNamed:@"yourImageName.png"]
if (myImage != nil) { ... }