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