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

Popular posts from this blog

many to many - Django Rest Framework ManyToMany filter multiple values -

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

Java Entity Manager - JSON reader was expecting a value but found 'db' -