xcode4.5 - On xcode, how do I say the length of the screen -


i have image appear in middle of screen. when change ios simulator iphone 4s 5, image doesn't appear in middle of screen, appears more top.

i thinking there way like: uiimageview.center.y = length of screen/2

please let me know if there way that.

you going want screen dimensions first cgrect. can use cgrect screens height , width.

cgrect screensizerect = [[uiscreen mainscreen] bounds]; cgfloat width = screensizerect.size.width; cgfloat height = screensizerext.size.height; 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -