0

I have seen a lot of posts in this site.

So they said when translucent property to NO , It's fine in iOS7.

For me , it doesn't work.

Here is my codes.

if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
        self.edgesForExtendedLayout = UIRectEdgeNone;
    }

    self.nBar.translucent = NO;

It still covering statusBar with NavigationBar in iOS7.

like this pic.

enter image description here

How can i do that?

Fire Fist
  • 7,032
  • 12
  • 63
  • 109

1 Answers1

1

While migrating to IOS 6 to IOS 7 You need to handle the alignment of the controls which are added in the Xib to resolve the status bar overlapping issue. Xcode provide delta value provision for each controls that will handle the alignment (based on the delta vale and ios version.)

Things to do : set the "view as" option as - IOS 7 and later

enter image description here

And increase the y value as 20 and set delta value for all the controls as -20

enter image description here

For more clarification refer: https://stackoverflow.com/a/19025547/1545180

Community
  • 1
  • 1
Ganapathy
  • 4,594
  • 5
  • 23
  • 41