ios - iPad landscape mode only with UINavigationController -


i making ipad app landscape mode supported, when add navigationcontroller in app, though simulator default set on landscape mode, app view in portrait . happens when try add uinavigationcontroller.

any appreciated, thanks.

subclass uinavigationcontroller , add these methods:

- (nsuinteger)supportedinterfaceorientations {     return uiinterfaceorientationmasklandscape; } - (bool)shouldautorotate {     return yes; } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -