2

I've seen a few posts on here regarding this issue, and I've tried all the fixes, but I still can't seem to get this to work.

I have an iOS7 app which uses a Storyboard. The First view is a TableViewController. When I run the app, the status bar with the battery level and signal level seems to be showing over the top of the tableview.

I want the status bar to show, with the tableview directly underneath. Can anyone tell me how to do this?

Screenshot of the problem enter image description here

Thanks y'all!

codercat
  • 22,873
  • 9
  • 61
  • 85
Andy Mills
  • 135
  • 2
  • 13
  • increment the reputation it will help to other – codercat Jan 11 '14 at 17:32
  • You can embed the UITableViewController in a UINavigationController. Refer to this [UITableView shows under status bar](https://stackoverflow.com/q/18900428/6521116) – LF00 Jan 15 '18 at 07:41

1 Answers1

1

this is status bar issue.

if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1)
{
     self.edgesForExtendedLayout=NO;
}

or

In your Appdelegate

 if (SYSTEM_VERSION_LESS_THAN(@"7.0")) {

    self.window=[[[UIApplication sharedApplication]delegate] window];

     self.window.frame =  CGRectMake(0,-20,self.window.frame.size.width,self.window.frame.size.height+20);
    }

ios-7-uitableview-shows-under-status-bar

Community
  • 1
  • 1
codercat
  • 22,873
  • 9
  • 61
  • 85
  • The second option worked a treat. I do hope this is a bug in XCode, as it seems rather shoddy relying on redrawing the rectangle to show the status bar. – Andy Mills Jan 11 '14 at 17:32
  • No it's not a bug. see the different between co-ordinate system of iOS 6 & iOS 7 – codercat Jan 11 '14 at 17:35