As the title explains, I'm creating a UIScrollView programmatically in my view controller's loadView, which I will then set to self.view.
_pagingScrollView = [[UIScrollView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.view = _pagingScrollView;
If I inspect _pagingScrollView.frame at the end of loadView, it's equal to
{{0,0}, {320,480}}.
However, if I inspect the same property within my scrollViewDidScroll
delegate, it switches to
{{0,0},{320,367}}
How do I alloc/init my scrollView so that it's height takes the tab/nav bars into account from the beginning, and gives me 367? I know I could simply hard code 367, but I'd like to know what's going on here and why it starts out with one value and then changes.