I put this in 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 like applicationFrame that gives the applicationFrame minus the UINavigationBar height?