UITableViewCell 中的 ImageView 不会显示

ImageView in UITableViewCell won't display

我已经将一个 ImageView 放在我的 Storyboard 的 UITableViewCell 中,但是在 运行 时它没有出现在我的模拟器上。我该如何解决这个问题?

我的故事板:

我的情节提要的对象概述:

Swift 填充单元格的代码:

func tableView(gamesListTableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    var cell = gamesListTableView.dequeueReusableCellWithIdentifier("Game", forIndexPath: indexPath) as! UITableViewCell
    if (indexPath.row < GamesList.count) {
        cell.detailTextLabel?.text = GamesList[indexPath.row]["game_guid"].string!;
        cell.textLabel?.text = GamesList[indexPath.row]["opponent_name"].string!;
        if (GamesList[indexPath.row]["self_turn"] == false) {
            cell.textLabel?.textColor = UIColor.greenColor();
        } else if (GamesList[indexPath.row]["game_idle_time"] <= 60) {
            cell.textLabel?.textColor = UIColor.yellowColor();
        } else {
            cell.textLabel?.textColor = UIColor.redColor();
        }
    } else {
        cell.detailTextLabel?.text = InvitesList[indexPath.row - GamesList.count]["invite_guid"].string!;
        cell.textLabel?.text = InvitesList[indexPath.row - GamesList.count]["invite_text"].string!;
        cell.textLabel?.textColor = UIColor.blueColor();
    }
    return cell
}

运行时间的样子:

您可能应该暂停执行并在 Xcode 中查看您的视图层次结构。在 运行 时检查它的帧大小,看看是否 A.) 有东西重叠或 B.) 如果你的约束是错误的。