Andy Mills
Andy Mills

Reputation: 135

Status Bar appearing over the top of Tableview

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!

Upvotes: 2

Views: 385

Answers (1)

codercat
codercat

Reputation: 23271

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

Upvotes: 1

Related Questions