I’m getting this error while running simulator. The project was not created on this environment, not sure I’m missing a configuration setting.
Error
2012-08-08 19:30:56.411 ACME[4068:f803] mItemArray.count: 2 2012-08-08 19:30:56.413 ACME[4068:f803] * Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle (loaded)’ with name ‘ImageViewCell”
if(cell == nil)
{
NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"ImageViewCell" owner:self options:nil];
cell = [array objectAtIndex:0];
}
You have not set the “files owner” in the NIB file to the owner you are setting in code. The NIB loader will fail like this when it cant link the objects in the NIB to the right root owner.