views:

42

answers:

1

I am new to iphone development. I want to check for a condition whether the image is present in the image view? I have created a image view such as

UIImageView *subview = [[UIImageView alloc] initWithFrame:CGRectMake(10.0f, 6.0f,50.0f, 50.0f)];

How to check whether the image is present in the image view?Please help me out.Thanks.

+2  A: 
if (subView.image != nil)
   // image is present
else
   // image missing
Vladimir