I put this in a loadView and it works:
CGRect navFrame = [[UIScreen mainScreen] applicationFrame];
navFrame.size.height -= self.navigationController.navigationBar.frame.size.height;
UIImageView *imageView = [[UIImageView alloc] initWithFrame:navFrame];
But is there a variable of type applicationFrame that gives applicationFrame minus the height of the UINavigationBar?
source
share