Subviews are incorrectly positioned by the amount of the iPad status bar
Posted
by DevDevDev
on Stack Overflow
See other posts from Stack Overflow
or by DevDevDev
Published on 2010-04-29T19:28:18Z
Indexed on
2010/04/29
19:37 UTC
Read the original article
Hit count: 395
I have a fullscreen view (768x1004), when I add a fullscreen subview to this view, it is incorrectly positioned by the height of the status bar (20 pixels). So the view will be clipped by 20 pixels at the top. I can't figure out why this is happening. The only way I can fix it is to set the origin to CGPointMake(0, 20) in viewDidLoad.
© Stack Overflow or respective owner