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
Post a Comment