UIImage not displaying in Table View
===

I am trying to display image in each row. I have a switch to decide where is which picture. I don't get any picture displayed though. Anybody experiencing same issue?

Here is the code:

    
        self.statIcon = (UIImage *)[cell viewWithTag:42];
        
        NSString *statusPath;
        switch ([[[self.logList objectAtIndex:position] objectForKey:@"STATE"] intValue]) {
            case 1:
                statusPath = [[NSBundle mainBundle] pathForResource:@"log_acc" ofType:@"png"];
                break;
            case 2:
                statusPath = [[NSBundle mainBundle] pathForResource:@"log_dec" ofType:@"png"];
                break;
            case 3:
                statusPath = [[NSBundle mainBundle] pathForResource:@"log_rights" ofType:@"png"];
                break;
            default:
                statusPath = [[NSBundle mainBundle] pathForResource:@"log_rights" ofType:@"png"];
                break;
        }
        UIImage *statImg = [[UIImage alloc] initWithContentsOfFile:statusPath];
        self.statIcon = statImg;