0

enter image description hereI have a iphone app which is installed in iPad its UI(blank space about 20 pixels above navigation bar) is correctly displayed in ios6 while a blank space appears in ios7 in iPad. I tried using the default images and using the methods

- (void) viewDidLayoutSubviews {

if (([[UIDevice currentDevice].systemVersion floatValue] >= 7.0)) {
    CGRect viewBounds = self.view.bounds;
    viewBounds.origin.y = -20;
    self.view.bounds = viewBounds;
}

}

but no use.How do i fix it? It is not a universal app.

user2798258
  • 171
  • 1
  • 4
  • 13

1 Answers1

0

The problem is related on the way iOS7 draws the views, please rewfer to these guide to understand the problem:

Explaining difference between automaticallyAdjustsScrollViewInsets, extendedLayoutIncludesOpaqueBars, edgesForExtendedLayout in iOS7

Community
  • 1
  • 1
Antonio MG
  • 20,382
  • 3
  • 43
  • 62