ios - UIScreen bounds versus applicationFrame -


why see in sample code apple (such photoscroller) should following in loadview:

cgrect frame = [[uiscreen mainscreen] bounds];  

instead of

cgrect frame = [[uiscreen mainscreen] applicationframe];  

does make difference main screen's frame?

applicationframe screen size minus size of status bar (if visible), bounds screen size regardless of status bar.

so applicationframe return cgrectmake(0,0,320,460) assuming app has status bar set visible, while bounds return cgrectmake(0,0,320,480) under same conditions. numbers assuming iphone/ipod touch screen sizes.

uiscreen class reference


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -