I have a UITableView in the grouped style, and only one section. However there is some blank space above and below the table view that is shown when the user scrolls too far. Ho
You can do this by altering the contentInset
property that the table view inherits from UIScrollView
.
self.tableView.contentInset = UIEdgeInsetsMake(-20, 0, -20, 0);
This will make the top and bottom touch the edge.
Use the bounces
property of UIScrollView
:
[yourTableView setBounces:NO];
This will remove what seems to be an extra padding at the top and bottom of your UITableView
.
Actually, it will just disable the tableview's scrollview to scroll past the edge of the content.
In my case issue was with the constraints i was applying. I have to change them in order to show 2 rows in my case while bottom of table touching last row.