My home screen (my main application screen) is the UIView where everything is done programmatically. I wanted to use XIB for my settings screen, but I get a weird black bar at the top above the status bar:

I switch to it as follows:
[[NSBundle mainBundle] loadNibNamed:@"ISViewController" owner:self options:nil];
self.view.transform = CGAffineTransformMakeRotation(-(M_PI * (90) / 180.0));
self.view.frame = [UIScreen mainScreen].applicationFrame;
I needed to rotate it, but even if I comment on CGAffineTransformMakeRotation, I still get a black bar. The XIB parameter called Status Bar is set to Light Content.
When I exit my XIB screen, I use the following to return to the original view:
self.view = jViewLayer;
! , ( XIB ). , , .