how to force it show on UIDeviceOrientationPortrait only?
example
layer1 display on UIInterfaceOrientationLandscapeLeft
when i pushViewController to layer2 it will auto show on UIInterfaceOrientationLandscapeLeft
how can i force it to display UIDeviceOrientationPortrait?
Simply implement
shouldAutorotateToInterfaceOrientation:in your view controller.