I have two view controllers, foo
that is portrait only and bar
that is portrait + landscape.
When I push bar
onto foo
, foo
always starts in portrait orientation. The user needs to tilt the phone after the push to get the os to detect the new orientation. What I would prefer is foo
to be in landscape from the moment it is loaded, if the phone is landscape the moment it is pushed.
How could this be achieved on iOS6 and 7 both?
I would add this code