iphone - UIWindow and Statusbar -
i have dialogviewcontroller
load main ui (login)
window = new uiwindow(uiscreen.mainscreen.bounds); var logonview = new logonviewcontroller(); window.addsubview(logonview.view);
the problem status bar hides top 5 mm or of screen.
how tell uiwindow
size of available screen, , not screen includes statusbar.
what if set root view controller instead?
window.rootviewcontroller = logonview;
if call addsubview instead of setting rootviewcontroller should warning "applications expected have root view controller @ end of application launch", , things (such rotation) not work correctly.
otherwise set logonview.frame
account size of status bar.
Comments
Post a Comment