IPhone: auto layout does not work

I have a problem with autorun. In the “Table” view below the “Image View”, you need to resize to fill the entire space below when the application is running on iPhone 5, but it’s not. What is the problem?

enter image description here

+4
source share
1 answer

Your table view should have a vertical distance limit for the image, and another at the bottom of the screen. It should not have height restrictions.

After editing:

I'm not sure what all your limitations are. Something seems to require a fixed height (or somehow tell the system that the relative height of the image and the look of the table). This worked perfectly for me to give the image a fixed height view and with these limitations for image presentation and table view:

picture:

enter image description here

table view:

enter image description here

0
source

Source: https://habr.com/ru/post/1493245/


All Articles