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];
}