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
Post a Comment