Subview wantfullscreen leaves 20px on top when rootviewcontroller - ECSlidingVIewController

Im uses ECSlidingViewControllerhow. RootViewController In doing so, I upload a UINavigationController, which ultimately collapses into the image gallery.

the image gallery sets the stastusbar and navigation bar to be translucent and set to wantfullscreen. However, this still leaves a 20px gap at the top where the status bar is. when I click on the gallery image to hide the navigation bar, status bar and toolbar, a space remains until I rotate the phone. Then and only then does the 20px gap disappear, only now when I click to display the navigation bar, the status bar and the toolbar, the navigation bar is in the status bar until I turn the phone again when it stays again from 20 -fold gap.

Here are some examples of what I'm talking about

normal view when loading (gap of 20 pixels)
http://cl.ly/GSE5
full screen mode → rotation → exit the full screen screen
http://cl.ly/GSMa

None of this happens if it RootViewControlleris standard. ViewController What should I look for in an implementation ECSSlidingViewControllerthat might be causing this?

+5
source share
1 answer

Try to make the view in your root controller with the correct size. Then you can load the image inside the view, and the image size is the size of the view.

I hope this result is helpful.

0
source

All Articles