Application frame leaves blank line at the top
Posted
by iFloh
on Stack Overflow
See other posts from Stack Overflow
or by iFloh
Published on 2010-05-12T07:47:22Z
Indexed on
2010/05/12
7:54 UTC
Read the original article
Hit count: 138
objective-c
|iphone
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];
How do I need to call the application frame size to avoid that gap?
© Stack Overflow or respective owner