Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get frame size after autoresize is done

I wonder, how and when (viewDidLoad, viewWillAppear, viewDidAppear) can I get a UIViews frame size that was autoresized to fit its partent view?

like image 859
Jakob Avatar asked Nov 26 '22 20:11

Jakob


1 Answers

It's not clear from your question why you want it but I imagine it is to layout your sub views. Luckily Apple knew you would want to do that and implemented -(void)layoutSubViews see this: When is layoutSubviews called?

like image 171
Rog Avatar answered Dec 01 '22 00:12

Rog