ios - Update UIView size based on parent size using autolayout -
i have view pview , subview sview added setting height , width constraints programmatically.
now, @ point of time want update sview's constraints based on pview's width. there no direct relation between two. need perform calculation using pview's size , set sview's width , height constraints result.
and need set constraints in updateconstraints method of pview. accessed pview's size in updateconstraints method comes old value because updateconstraints executed bottom-up.
any hints how can done?
Comments
Post a Comment