Search code examples
iphonexcode4uitableview

Error loading an image to a UIImageView in a CustomCell


I'm trying to build a menu using a UItableView with Custom cells which have an image and some additional text. However, when I try to load the image using the code below I get a SIGABRT error, why?

        imageTmp = [UIImage imageNamed: @"HR1.jpg"];
        cell.image = [UIImageView setImage:imageTmp];

The UIImageView is called image


Solution

  • shouldn't it be

    cell.imageView.image  = imageTmp;