ios - Fit a UIView to screen -


i add portrait orientation application. there way shrink or fit uiview (created in xib) screen?

i have landscape sized views in xib files , set them opposite of using interface builder stretching (the center block).

enter image description here

or possible in code?

in code, can use self.myview.frame = self.view.bounds;. make stick way, self.myview.autoresizingmask = uiviewautoresizingstretchablewidth | uiviewautoresizingstretchableheight;


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -