Using xib to customize a cell (Xib drag directly in the Uiview,uiview to add the button), in the xcode6.4 when the operation is not a problem, but the xcode7 found that the button can not be clicked. When the Xcode7 is running, it responds to the Didselectedrow method of the cell. Solution, the Xib custom cell in the UIView changed to UITableViewCell, add UIButton to the cell contentview inside there is no problem. If the custom cell is too much, there can be a simple way to move the cell's contentview to the innermost layer, or delete the Contentview directly.
The specific reason: Before Xcode7, the custom UIView was added to Contentview's subviews. But after the Xcode7, the UIView is added to the inside of the Contentview layer, the cell's outermost layer is contentview, so when clicked, is actually clicked Contentview instead of button.
A button in a custom cell does not respond to a click event