objective c - UIView frame larger than iPhone's screen -
i have made new iphone view-based project in xcode, , have @ xib generated, name myappviewcontroller.xib. in xib, generated view's frame looks this: { x = 160, y = 230, w = 320, h = 460 } view supposed fill entire screen, excluding status bar. expect view's frame this: { x = 0, y = 0, w = 240, y = 300 } older iphones, , { x = 0, y = 0, w = 480, h = 600 } retina display. however, weird values above. can please explain me happening here, ruining of drawing code in other project (the area draw based off of frame of view).
retina display doesn't increase point size of view.
when apple introduced it, made difference between points , pixels. retina display has more pixels, same amount of points.
in code related uikit in points, no changes needed there, view of 100x100 still size.
i don't understand question frame value can modified bounds property , center property... check if you're not modifying those.
Comments
Post a Comment