iphone - Scale Entire UIView Proportionately -


i have base uiview takes entire iphone screen when horizontal. when device rotated portrait, want view scale down , in 2/3 size , center on screen shown:

image: http://img25.imageshack.us/img25/3281/rotateqx.jpg

i can't life of me figure out though. i've messed autoresizing, seems work if each subview, , though scale okay, because not elements centered don't end in right location in portrait mode.

and far setting uiviewcontentmode, can work great individual elements, not view whole, , because i'm implementing customized drawing methods, can't set elements individually. placement issue comes effect again.

thanks.

have tried adjusting view's transform property? if use cgaffinetransformscale(), should effect want.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -