Swift:
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
return (CGFloat(106)) // MUST Return CGFloat type value
//return tableView.estimatedRowHeight default is 0, will
//Xcode 8 even not giving an error if you return other type,
//other type will cause table cell can not be selected
}
using tableView.userInteractionEnabled = true can not solve the problem.
Objectiv-C:
- (CGFloat)tableView:(UITableView )tableView heightForRowAtIndexPath:(NSIndexPath )indexPath{
return 44;
}