Portrait/Landscape 전환 하는 법 알고 계시는 분 부탁드립니다.

info.plist에
UIInterfaceOrientation 항목에 UIInterfaceOrientationLandscapeRight
설정하는 것 말고
코드로 Portrait / Landscape을 왔다 갔다 하고 싶은데..


UIViewController 에 interfaceOrientation 속성이 있는데
(readonly) 속성이라서 읽어지기는 잘 읽어지는데
어떻게    UIInterfaceOrientationLandscapeRight  로 바꿀 수 있는지..


삽질 중에 참고로 ,   info.plist에
UIInterfaceOrientation 항목에 UIInterfaceOrientationLandscapeRight
를 설정해도
UIViewController 생성해서 interfaceOrientation 읽어보면
UIInterfaceOrientationPortrait (1)으로 나오고 그래서


혹시 경험 있으신 분들 부탁드립니다.

이 게시물을..