Note that there are some explanatory texts on larger screens.

plurals
  1. POFrame issue with UINavigation controller
    primarykey
    data
    text
    <p>I am seeing this really weird issue with pushing/popping a UIViewController with custom buttons in the view. I confirmed it does not happen with other views I have like UIViewTableController, etc.. I have a function that calculates the navbar + status bar height, and then I offset my icons so their origin starts at CGMakeRect(0.0f, navbarheight+statusbarheight, ....) This looks great when I start the main screen on the phone (this view is initialized as the root view):</p> <p><a href="https://dl.dropboxusercontent.com/u/28315319/photo%20%282%29.PNG" rel="nofollow">https://dl.dropboxusercontent.com/u/28315319/photo%20%282%29.PNG</a></p> <p>Then, when I push a new view onto the navigation controller, I see this gap appear out of nowhere. This does NOT occur on the simulator, but does occur on the phone. Again, that top button is being placed as CGMakeRect(0.0f, navbarheight+statusbarheight, ....)</p> <p><a href="https://dl.dropboxusercontent.com/u/28315319/photo%20%283%29.PNG" rel="nofollow">https://dl.dropboxusercontent.com/u/28315319/photo%20%283%29.PNG</a></p> <p>Finally, when I pop that view, my original root view contains this gap.</p> <p><a href="https://dl.dropboxusercontent.com/u/28315319/photo%20%281%29.PNG" rel="nofollow">https://dl.dropboxusercontent.com/u/28315319/photo%20%281%29.PNG</a></p> <p>No clue what is causing this to happen on the real phone (iphone 4s + iphone 5) and not the simulators. If you need more info, let me know.</p> <p>UPDATE:</p> <p>As far as I can tell - this is a bug in the XCode simulator not taking into account the navigationbar height. I am no longer using the simulator and just distributing it to my phone.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload