Saturday, August 15, 2015

setNeedsLayout vs. setNeedsUpdateConstraints and layoutIfNeeded vs updateConstraintsIfNeeded

Some explanation on the differences:

http://stackoverflow.com/questions/20609206/setneedslayout-vs-setneedsupdateconstraints-and-layoutifneeded-vs-updateconstra

also some good advice on updating constraints:
https://medium.com/@NSomar/auto-layout-best-practices-for-minimum-pain-c130b2b1a0f6

No comments:

Post a Comment