I have the following layout for `UITableViewCell`:

[![enter image description here](https://i.stack.imgur.com/kFcZo.png)](https://i.stack.imgur.com/kFcZo.png)

The layout consists of two subviews: 

* `TopView` (containing a `Show` button)
* `BottomView` (which is expanded or collapsed when the `Show` button is pressed).

`BottomView` consists of 3 subviews. The constraints of these subviews are:

* Each of the three subviews contains a `UILabel` that is pinned to the `leading`,`top` and `trailing` edges with a constant == 8.
* The `UILabel` is pinned to the bottom of the `UIView` using a constraint that is >= 8. This forces the `UILabel` to be aligned to the top of the `UIView`.
* The left-most of the three `UIViews` is pinned to the leading edge of `BottomView`.
* The right-most of the three `UIViews` is pinned to the trailing edge of `BottomView`
* Each of the three `UIViews` is pinned to the top of `BottomView`
* Each of the three `UIViews` is pinned to the bottom of `BottomView`
* The three views have equal widths and equal heights.
* the bottom of `BottomView` is pinned to the the bottom of the `UITableViewCell`'s Content View

This gives me my desired layout:

[![enter image description here](https://i.stack.imgur.com/syO02.png)](https://i.stack.imgur.com/syO02.png)

What I'd like to accomplish is the following:

1. Initially, `BottomView` should be collapsed.
2. Clicking on the `Show` button should expand or collapse the `BottomView` as appropriate.

I managed to do this by creating a `bottomViewHeightConstraint` that is initially uninstalled. Tapping on the `show` button activates/deactivates the constraint. 

**AnotherTableViewCell.m**

```
-(IBAction) show
{
    self.bottomViewHeightConstraint.active = !self.bottomViewHeightConstraint.active;
     [UIView animateWithDuration:0.3 animations:^{
        [self layoutIfNeeded];
        [self.delegate cellRequiresUpdates:self];
    } completion:^(BOOL finished) {

    }];
}

```

**UIViewController.m**

```
-(void) cellRequiresUpdates:(AnotherTableViewCell *)cell
{
    [self.tableView beginUpdates];
    [self.tableView endUpdates];
}

```

**This worked but produced a lot of warnings for unsatisfiable constraints. I'd like help in understanding which of my constraints are causing the warnings.**
The unsatisfiable constraints are:

1. `bottomViewHeightConstraint`== 0

*(needed because I want to collapse bottom view)*

2. Equal heights between the left-most and right most `UIView` in `UIBottomView`

*(tried deactivating, but warning didn't go away)*

3. 8-pixel distance between the bottom of the leftmost UIView and the bottom of `BottomView`

*(tried deactivating, but warning didn't go away)*

4. 8-pixel distance between the bottom of the leftmost UIView and the bottom of `BottomView`

*(tried deactivating, but warning didn't go away)*