ios - Using Auto Layout, give an object a dynamic size based on the screen size -


in xcode storyboard, have image view, , have large image in it. let's set 500 pixels 500 pixels.

yet, don't want large on small screens, , screens in both landscape , portrait. how can shrink fit on small screens, yet still expand 500x500 on larger screens?

you can set childview's width percentage of superview in storyboard(maybe set multiplier 500:768 right you). also there blog that.


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -