I tried having a height constraint updated when the view width changes, but there are corner cases for which that doesn’t work.
Is there a way with AutoLayout to have a view height depend on its width, but not expressible with an aspect ratio? For example having multiple buttons displayed one after the other on multiple lines with a text-like flowing layout.
-
-
Prikaži ovu nit
-
If my view is in a table view cell that uses autosizing, the cell is sometimes created with a non-final width, then the system uses systemLayoutSizeFitting to get the cell height without the constraint being updated in regard to the final width. When it gets updated it’s too late
Prikaži ovu nit
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.