romaonthego/RETableViewManager — pull request #178 by fastred (2014-06-21 16:49:13+00:00)
Title: Fix RETableViewBoolCell's and RETableViewSegmentedCell's layout on iOS 8

On iOS 8 bool and segmented cells had broken layout when they were redisplayed (when `cellWillAppear` was called more than one time):
![screenshot 2014-06-21 18 41 44](https://cloud.githubusercontent.com/assets/197767/3349428/f3e80636-f962-11e3-846a-7253faf14221.png)

The problem was with removal of all `contentView's` constraints in `cellWillAppear`. In iOS 8 UIKit adds its own constraints and removing them causes glitches. I tested the fix on iOS 6.1-8.0b2.

Here's the comparison of the constraints between iOS versions with breakpoint set on the first line of `cellWillAppear` in `RETableViewSegmentedCell`:

**iOS 7**
```
(lldb) po self.contentView.constraints
<__NSArrayM 0x8c71fb0>(
,
,

)
```

**iOS 8**

```
(lldb) po self.contentView.constraints
<__NSArrayM 0xaf279b0>(
,
,
,
,
,
,

)
```