UINavigationBar and calculation of available screen area
<pre><code>CGRect fullWindowRect = [UIScreen mainScreen].applicationFrame;
</code></pre>

<p>is an easy way to get the available rect, minus the status bar. With iPad/iPhones increasingly diverging in these basic system metrics I want to stop subtracting 44 to get the screen height when a UINavigationBar is in place. It is important for positioning things so that they are offset from the bottom of the screen by their own height, i.e. aligned with screen bottom.</p>

<p>What's the magic function, surely you are not just supposed to make consts for the two (or more) possible nav bar heights and remember when to apply them? I'm not finding answers here or elsewhere but I find "44" very often.</p>
