开发者

How to check if there is an image present in the image view?

开发者 https://www.devze.com 2022-12-28 13:14 出处:网络
I am new to iPhone development. I want to ch开发者_StackOverfloweck for a condition whether the image is present in the image view? I have created a image view such as

I am new to iPhone development. I want to ch开发者_StackOverfloweck 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?


if (subView.image != nil)
   // image is present
else
   // image missing
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号