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

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

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -