how to make UIImage as NULL in objective-c
问题 I have used the code : UIImage *selectedImage; then, for (int j = 1 ; j <=b ; j++){ id subView = [self.view viewWithTag:j]; if ([subView isKindOfClass:[UIImageView class]]){ ((UIImageView *)subView).image = selectedImage; then how to make the UIImage as null value. 回答1: Instead of making UIImage NULL set the Image as Empty Image [UIImage imageNamed:@""] 回答2: If you want to simply set your image to null, just do : yourImage = nil; If I missunderstood the question or if I'm wrong do not