I had the impression that the UINavigationController navigation bar would always discard the height of the child view, so that the origin of the child view was at the bottom of the title bar.
But when I present a view controller like this ...
MyViewController *viewController = [[MyViewController alloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController]; viewController.title = @"My View Controller"; viewController.navigationItem.prompt = @"My Prompt"; viewController.delegate = self; [self presentModalViewController:navigationController animated:YES]; [navigationController release]; [viewController release];
... and then check self.view.frame.size.heighton NSLog in viewDidLoad, it reports that my view is 460 pixels high. Shouldn't he subtract the height of my name and clue?
self.view.frame.size.height
viewDidLoad
So, according to the request:
viewDidLoad, . , , ( 320x480 iPhone-).
. , viewWillAppear, . , iPhone-. iPad-, , !
viewWillAppear
- , NIB.
, self . self MyViewController, , , 460-44 ( UIToolbar), self (, ), (, 460px).
self
MyViewController
UIToolbar
, self.view.frame.size.height MyViewController, . ( viewWillAppear:), .
viewWillAppear:
self.view.frame.size.height viewDidLoad, , , .
, .