어떻게하면 RubyMotion 응용 프로그램이 회전하지 않게 할 수 있습니까?RubyMotion 응용 프로그램을 순환하지 않게 유지
내가 구현하는 시도 :
def shouldAutorotateToInterfaceOrientation(interfaceOrientation)
UIInterfaceOrientationLandscapeRight == interfaceOrientation
end
을하지만 응용 프로그램 전체 무언가를 원하는, 내가 응용 프로그램을 통해이를 제어 할 AppDelegate
에서 설정할 수있는 방법이있다?
감사합니다. Jamon, 나는 각 컨트롤러와 내 Rakefile'app.interface_orientations = [: portrait]'에서'def shouldAutorotate false end'를 구현했습니다. 또한 ProMotion을 사용하여 매우 기쁩니다. – Alekx
쿨! :) 다행 이네. –