GroupedなUITableViewで上端のmarginをとりたい

2016-07-19#ios

override func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
    if section == 0 {
        return .min
    } else {
        return super.tableView(tableView, heightForHeaderInSection: section)
    }
}