Frame size below navigation bar?

cocoa-touch, iphone, objective-c

Solution

You can try to subtract

[UIApplication sharedApplication].statusBarFrame.size.height

And

self.navigationController.navigationBar.frame.size.height

From your

self.window.frame.size.height

Cheers, Rog

Problem

From within `rootController` I am manually adding a UITableView, but I don't know how I would get the frame size ... ``` Controller *rootController = [[Controller alloc] init]; UINavigationController *tempNavController = [[UINavigationController alloc] initWithRootViewController:rootController]; [self setNavController:tempNavController]; [tempNavController release]; [window addSubview:[[self navController] view]]; [window makeKeyAndVisible]; ``` I am currently using: `[[[self navigationController] view] frame]` but this does not account for the "navBar" height or that of the "statusBar" (giving me: 480). Is there a way to get the size of the frame below the statusBar / navBar or do I have to subtract 20 + 44 off the number above? NB: I am using `navigationController.navigationBar.frame.size.height` to get 44

Original source