Description:
first top several table cells can be selected, but after tableview cells after several cells can not selected
Reason:
It is out of the control area because table view height is too small.
Solution:
set table view height bigger
if useing Constraint, it is better to set Bottom parameter compared to setting height if you do not know how height it it in iphone 5,6,7
self.view.addConstraint(NSLayoutConstraint(item: uiView, attribute: .Bottom, relatedBy: .Equal, toItem: self.view, attribute: .Bottom, multiplier: 1.0, constant: -10))
or
self.view.addConstraint(NSLayoutConstraint(item: uiView, attribute: .Height, relatedBy: .Equal, toItem: nil, attribute: .NotAnAttribute, multiplier: 1.0, constant: ScreenHeight - 100))