Clicking a custom UITableView section header is invoking didSelectRow: on first row of the section
You shouldn't be using subclasses of UITableViewCell
for headers/footers. Use UITableViewHeaderFooterView
(if you can live with >= iOS6) or simply UIView
otherwise.
use return cell.contentView
instead of return cell
if you are using UITableViewCell
for header/footer