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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -