문제

I am facing some problems with my current application's interface orientation. My application need to run only in portrait orientation But I need to show the videos in both modes. So what I have done is I set the application to support all orientations both portrait and land scape in the project file. And in my view controller class (a base class for all view controllers in the project) I set the status bar orientation to portrait. It works perfectly for all view controllers except for that presented as modal view . Any solution for restricting land scape mode to those views??

도움이 되었습니까?

해결책

You have to make custom class files subclass of UINavigationController to support rotation as per your requirement.

I had the same issue . Please follow it, you will get an idea.

Hope this will help.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top