for my code,
shouldAutorotateToInterfaceOrientation is getting called and i am returning YES there but still when I rotate the device, controller’s view change its size but a UIImageView inside the main view does not change its size. I want it to be resized just like the main view.
thanks in advance
set the
autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidthaccording to your need.In code
If you have created in xib then in IB set

this as shown in the below image