i recently work on new project and I need to add Two Custom view in one Cell in TableViewController. like this:

```
if indexPath.row == 4 {

        for index in 0..<2 {

            let reviewView = ReviewView()
            reviewView.translatesAutoresizingMaskIntoConstraints = false

            cell.addSubview(reviewView)
            cell.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|-[v0]-|",options: [],metrics: nil,views: ["v0" : reviewView]))

            if index == 0 {

                cell.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|-[v0(71)]",options: [],metrics: nil,views:["v0" : reviewView]))
                reviewView.backgroundColor = UIColor.redColor()
                reviewView.frame = CGRectMake(0, 0, cell.contentView.frame.size.width, 71)
            }
            if index == 1 {
                cell.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:[v0(71)]-|",options: [],metrics: nil,views:["v0" : reviewView]))
                reviewView.backgroundColor = UIColor.blueColor()
                reviewView.frame = CGRectMake(0, 71, cell.contentView.frame.size.width, 71)
            }

            print(index)
        }

        return cell

    }

```

but the result is like this(height of both view must be equal and 71) : 

[Simulator Result](http://i.stack.imgur.com/RmIX2.jpg)

I guess the problem is about Constraint between two view.How I manage that?

Thanks guys

EDIT:
cell height is auto **(UITableViewAutomaticDimension)**