Any clues why my programmatically defined UIScrollView (using the application frame) always leaves an empty space at the top (below the navigationBar) of 20 pixels. How can I close that?
UIScrollView *vScrollView = [[UIScrollView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
vScrollView.backgroundColor = [UIColor redColor];
My screen looks like this:
- status bar
- — Navigation bar
- — the mysterious gap (10px?)
- —- my Scrollviewcontent (with red background color)
How do I need to call the application frame size to avoid that gap?
I found I use the wrong frame coordinates “applicationFrame”. All works fine when changing it to the bounds.