ios - View is pushed down by about 20px, but is fixed when I rotate screen -


i have viewcontroller(nib) invoked 2 different places. when invoke 1 place, looks fine other seems have 20px(looks enough status bar) offset top..

if rotate device goes away , looks ok..i've been troubleshooting since yesterday no luck - far can tell i'm not doing different when load screen..

i'm not sure code paste, both places being called in same way, i'm looking ideas - if it's not answer seem out of ideas.

screenshot,

did try setting edgesforextendedlayout in viewdidload?

if ( is_os_7_or_later && [self respondstoselector:@selector(edgesforextendedlayout)] ) {     self.edgesforextendedlayout = uirectedgenone; } 

edit: here ios 7 transition guide apple if want more info on how fixed ios 7


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -