Sometimes when we load the UIImage and try to use it, it does not display or throws an exception. The very simple way is to check whether the image has been loaded correct is to check for the image handle . If its is null , it implies that image could not be loaded.


Code

UIImage *image = [UIImage imageNamed:@”someImageFile”];
if(!image)
{  NSLog(@”Image Not Loaded”);
}

The most common reason as why this happens is due to an incorrect image file name that is specified or the image is not part of the project itself.