why with ios7 My stackViewController put this white line?

232 Views Asked by At

enter image description here

Why there is this white space at bottom-left? it wasn't here on ios6 compiled version and i can't understand how to remove it. My nib file hasn't it (the top level view is large as you see (20 pixel left from the image) and controller side there isn't any trace of view's dimensions.

EDIT: i've already tried to put C_X solution on code:

[super viewDidLoad];


self.view.backgroundColor = [NVGlobals homeCellBackgroundColor];
// on the iPad, disable panning (because we're inside a stacked
// view controller
if (IS_IPAD) {
    self.edgesForExtendedLayout=UIRectEdgeNone;
    self.panEnabled = YES;

}

but it doesn't work. Any ideas?

EDIT: PROBLEM SOLVED: I'm using a plugin called PSStackedView (https://github.com/steipete/PSStackedView/) and to use it correctly on iOS7 you must change viewRect with bounds instead of application:

- (CGRect)viewRect {
// self.view.frame not used, it's wrong in viewWillAppear
CGRect viewRect = [[UIScreen mainScreen] bounds];
return viewRect;

}

1

There are 1 best solutions below

6
On

This is because in iOS we have extended edges, you can set it to UIRectEdgeNone.

self.edgesForExtendedLayout=UIRectEdgeNone;

Then your view will not move up under the status bar.