how to access the Origin XY and size Width Heigh of a container ScrollView given their Children UIViews

21 Views Asked by At

I the storybook, there is a main UIViewController of type ScrollView, it includes several UIViews. In the code I have an NSArray that contains all the UIViews that are withinvthe scrollView. for some reason, the width, height ,x and y of the scrollView are required to introduce some adjustments on the UIVIews. The question is, how can I have access or how to get the Origin X,Y and size(width and height) of the scrollView “the mainUIView container”.

Note:_ the NSArray contains only UIViews as children of the ScrollView.

0

There are 0 best solutions below