현재 Rubyotion에 쓰고있는 ios 앱이 있습니다. 항상 세로 방향으로 표시하고 가로 방향으로 회전하지 않도록 UIViewController를 설정하려고합니다. 나는 다른 raviewcontroller를 위해 모든 orientaitons을 필요로하므로 rakefile에서 세로 방향을 지정할 수 없습니다. 내 코드는 아래를 참조하십시오 :Rubymotion UIView 오리엔테이션
class ConfirmationController < UIViewController
def viewDidLoad
super
self.view.backgroundColor = UIColor.blueColor
end
def shouldAutorotate
true
end
def supportedInterfaceOrientations
UIInterfaceOrientationMaskPortrait
end
def preferredInterfaceOrientationForPresentation
UIInterfaceOrientationMaskPortrait
end
당신은 내가 내 preferredInterfaceOrientation을 설정하려고하지만 내 장치가 회전 할 때 여전히 가로 방향으로 변화하고있다 볼 수 있듯이. Rubymotion으로 이것을 설정하는 방법에 대한 아이디어가 있습니까?