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? Rog 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? I tried layoutSubviews , but it gets called more than once which is a problem when I need the auto sized frame in order to create a CGContext to draw into. The solution I used was to expose an init method on my custom UIView for