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.
Comments
Post a Comment