I have a view controller(VC1) which supports rotation to landscape mode. But in next view(VC2) I just want it to appear in portrait mode only, by this I mean if user is on VC1 in landscape mode and going to VC2,then its views are setting their frames according to landscape bounds. I don't want this, I want view should appear 90 degree rotated just like it appears in the case when user is already in VC2 in portrait mode and then changes the orientation on device to landscape and VC2 don't support autorotation.
I have that noticed that this happens only when the parent view controller also does not support autorotation. If parent view does not support autorotation then child view will will appear 90 degree rotated when pushed or presented in landscape mode.