iOS get the subviews bounds when rotation happened

40 Views Asked by At

Once rotated the phone, how can I get subview's final bounds?

As said, I rewrite the viewDidLayoutSubview method but only get the self.view's final bounds, the subview are using auto layout to positioning. So is there a way to get the subviews final bounds. and for some reason better not to subclass the view itself.

- (void)viewDidLayoutSubviews
{
    [super viewDidLayoutSubviews];
}

1

There are 1 best solutions below

2
Ashot Asoyan On

Try to get bounds in that method:

- (void)layoutSubviews;