UIImageView and UILabel display issues in a UITableViewCell using Swift
<p>I'm having issues displaying some image views and text labels using a custom <code>UITableViewCell</code>.</p>

<p>This is what is happening:</p>

<p><a href="https://i.stack.imgur.com/3tQUj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3tQUj.png" alt="enter image description here"></a></p>

<p>A shot of the storyboard:</p>

<p><a href="https://i.stack.imgur.com/NlYw2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NlYw2.png" alt="enter image description here"></a></p>

<p>Some of the issues is that the <code>UILabel</code> text does not get replace and it's ghosting. Also, for the 2nd row, there should only be 2 <code>UIImageViews</code> but there's 3, because there's text for the middle that shouldn't have been shown.</p>

<p>AboutCustomCell.swift:</p>

<pre><code>class AboutCustomCell: UITableViewCell
{

    @IBOutlet var threePicRow_leftImageView: UIImageView!
    @IBOutlet var threePicRow_leftNameLabel: UILabel!
    @IBOutlet var threePicRow_leftPositionLabel: UILabel!

    ...

    @IBOutlet var twoPicRow_leftImageView: UIImageView!
    @IBOutlet var twoPicRow_leftNameLabel: UILabel!
    @IBOutlet var twoPicRow_leftPositionLabel: UILabel!

    ...
}
</code></pre>

<p>cellForRowAtIndexPath:</p>

<pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell
{
    let cell3Pic = tableView.dequeueReusableCellWithIdentifier("3PictureRowCell", forIndexPath: indexPath) as! AboutCustomCell
    let cell2Pic = tableView.dequeueReusableCellWithIdentifier("2PictureRowCell", forIndexPath: indexPath) as! AboutCustomCell

    switch (indexPath.row)
    {
        case 0:
            cell3Pic.threePicRow_leftNameLabel.text = "Name"
            cell3Pic.threePicRow_leftPositionLabel.text = "Position"
            cell3Pic.threePicRow_leftImageView.image = UIImage(named: "icon_about")

            cell3Pic.threePicRow_middleNameLabel.text = "Name"
            cell3Pic.threePicRow_middlePositionLabel.text = "Position"
            cell3Pic.threePicRow_middleImageView.image = UIImage(named: "icon_about")

            cell3Pic.threePicRow_rightNameLabel.text = "Name"
            cell3Pic.threePicRow_rightPositionLabel.text = "Position"
            cell3Pic.threePicRow_rightImageView.image = UIImage(named: "icon_about")

            return cell3Pic
        case 1:
            cell2Pic.twoPicRow_leftNameLabel.text = "Name"
            cell2Pic.twoPicRow_leftPositionLabel.text = "Position"
            cell2Pic.twoPicRow_leftImageView.image = UIImage(named: "icon_about")

            cell2Pic.twoPicRow_rightNameLabel.text = "Name"
            cell2Pic.twoPicRow_rightPositionLabel.text = "Position"
            cell2Pic.twoPicRow_rightImageView.image = UIImage(named: "icon_about")

            return cell2Pic
        default:
            break;
    }

    // Will never reach here
    return cell3Pic
}
</code></pre>

<p>Is there something I'm not doing to the custom cell that would cause this? Thank you.</p>