简体   繁体   中英

Recalculating and Applying Auto Layout Constraints with Xcode

I have this ViewController that has Auto Layout constraints and for some reason, when I load it with one segue the constraints work and when I load it with another - they don't.

Is there some code I can use that makes sure the constraints I set are applied? Maybe something to recalculate them?

Thanks

Used:

[view layoutIfNeeded];

if someone runs into this issue.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM