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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -