Try with following approach
[self.view setAutoresizesSubviews:YES];
[self.view setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight];
The setAutoresizesSubviews property controls whether each view will resize automatically when their bounds change. The setAutoresizingMask property controls how each object resizes automatically.