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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -