views:

95

answers:

1

I have 2 UITableViewControllers, both are using same data source but for some reason one of them has weird header gap on the top. I don't understand why. When I'm changing style to UITableViewStylePlain the positioning is fine but I need grouped style here.

Any thoughts?

A: 

Try setting the header size using heightForHeaderInSection.

Paul Peelen
From the docs: On iPad devices, table views in the grouped style automatically get wider margins when the table views themselves are wide.
Nick
So basically the issue is that TableView with grouped style on iPad device set margins automatically. Does anyone know how to change these automatically set margins?
Nick
Try settings the frame with CGRectMake.
Paul Peelen