ios - One controller in landscape orientation -


i have app, consists of 1 tab bar controller contains 4 navigation controllers. can't find solution have 1 controller in hierarchy of navigation controllers in landscape mode. other controllers suppose portrait. appreciate on issue.

in viewdidload(): of navigation controller want landscape, include:

let value = uiinterfaceorientation.landscapeleft.rawvalue uidevice.currentdevice().setvalue(value, forkey: "orientation") 

be sure add following override too

override func shouldautorotate() -> bool {     return true } 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -