Table Header Positioned Too High


#1

Hi there

In my UITableView the table header is positioned too high up the screen and is partially obscured by the mobile signal strength icon and the time at the top of the screen. What have I done wrong?

https://drive.google.com/open?id=0B0st4P-XkASBS3RldTkxd3Y0cjQ

One solution could be to add space above the Edit and New buttons in the HeaderView.xib; screenshot of current HeaderView.xib below.

https://drive.google.com/open?id=0B0st4P-XkASBeG5MTHE3Qk9MUE0

I’m using Xcode 5.1.1 on OS X Yosemite 10.10.5

(Sorry, images were not showing up, hence the URLs)


#2

Find answer on Stack Overflow.

In the init method in class BNRItemsVewController, change the following line

self = [super initWithStyle:UITableViewStylePlain];

to

self = [super initWithStyle:UITableViewStyleGrouped];