Fry Fry - 1 month ago 11
iOS Question

iOS 7 UITableView: How to remove space between navigation bar and first cell

my problem is: with iOS 7 in grouped

there is a gap from the top of the table and the first cell.

The strange is that when I load the content for the first time the table appears ok like in the first image, but when I scroll down a space appears between top and first cell like in the second:

enter image description here enter image description here

With style plain this behavior does't came out but unfortunately I need to use grouped table view.

Any ideas about ?


Just add this in you ViewDidLoad method

self.automaticallyAdjustsScrollViewInsets = NO;