Member-only story
Why is there extra padding at the top of my UITableView with style UITableViewStyleGrouped in iOS7
1 min readNov 15, 2019
Starting in iOS7, there is additional space at the top of my UITableView
's which have a style UITableViewStyleGrouped
.
We can use following solution:
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 0.001
}
For more about iOS development : https://medium.com/@javedmultani16
Some useful codes and libraries: https://github.com/javedmultani16
Know more about me: https://www.linkedin.com/in/javedmultani16/