CUICatalog debugging: invalid asset name: (null)

I use xib to create the user interface of one of my applications. I get several console warnings related to "CUICatalog: invalid asset name: (null)". From the research, I found out that if we specify the wrong image name in xib, this error occurs. But here I want to know if there is a way to indicate the place where it throws this error from, the xib name or the wrong image name, etc.

+4
source share
1 answer

I just fixed this error. Just check the use of the function [UIImage imageNamed: (NSString *) imageName]. If name_name is zero, an error will occur.

In my code:

UIImageView*imageView=[[UIImageView alloc]initWithFrame:frame];

    if (imageName!=nil) {
        imageView.image=[UIImage imageNamed:imageName];
    }
0

All Articles