I have designed a screen for a portrait only iPhone app. I have applied Autolayout so that the view horizontally fits all the screen sizes. The problem is, for smaller screen sizes, the content is truncated vertically. I tried not to set a fix height of components but it breaks all the alignment of the components. Please see the image for reference;
Any quick suggestion for what I'm missing... Thanks
If I were you I would would follow one of two approach -
2.or if your content is bigger than iphone screen then you can always opt for scroll view.(I prefer pure layout approach)
Set vertical spacing between components. Don't fix width and height of components. set aspect ratio constraint for every component.
Like many of the comments and answers above, there are many ways to solve this problem. The decision for you to take is which is more suitable
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.