ios - UIInterface orientation issues -
ios - UIInterface orientation issues -
i create project supported interface orientation landscape only.
in ib alter orientation view on landscape , alter size w: 480 h:320.
in method -scrollviewdidscroll width of view (self.view.frame.size.width) , value 320 in ib set in 480.
anybody know it? thanks!
changing orientation in ib doesn't create difference view 1 time it's loaded - it's convenience when laying out controls.
the view's actual width depend on orientation of device @ runtime, assuming you've allowed rotate.
when view loaded nib resized fit screen automatically, if phone in portrait mode when load it, width 320.
make sure you've set willrotatetointerfaceorientation: method correctly in view controller.
if that's right , it's displaying in landscape, thing seek utilize self.view.bounds.size.width property instead, inner size (bounds) not same outer size (frame) if view has been rotated.
ios uiinterfaceorientation
Comments
Post a Comment