ios - Automatically refactor objects from Autolayout -


i read should not use setframe when using autolayout.

however, if have constraint uibutton uitextview, lets uitextview's height changes , in ib set uibutton's constraint 10 vertical unit spacings apart uitextview. when change uitextview's height using setframe, there anyway uibutton automatically recalculate it's y position based on constraint?

thanks!

you shouldn't modify view's frame when using autolayout. need modifiy constraint, wether resetting programmatically or adding iboutlet references constraint , modify constant value.
might want take @ this article


Comments

Popular posts from this blog

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -