AVPlayer Rotate View makes cannot tap to the screen

早过忘川 提交于 2019-12-01 05:26:23

问题


I used AVPlayer for movie player in my app. I explained the problem with diagrams.

When I click Play button in movie view controller(Portrait mode),then goes to movie details view. When I tap on the screen , the navigation bar and movie player bar appear. If you tap again the screen, it will disappear. This goes well when the device is in Portrait mode.

But, I changed my code to Landscape mode when I click on play button, it will automatically change to Landscape mode in movie details view.

So, the problem in here is that when I do like that, tapped area is only in top and cannot tap any other places.
This happens when previous view controller(Movie View Controller) is in Portrait mode and Movie Details View is in Landscape mode.

The problem won't happen if first view controller(Movie View Controller) is in Landscape mode and second view controller (Movie Details view controller) is in Landscape mode.

I have no idea of how do I solve this problem. Does first view controller rotation mode effects to second view controller?
Please anyone help me this?
Thanks for reading my long paragraph.

来源:https://stackoverflow.com/questions/43132122/avplayer-rotate-view-makes-cannot-tap-to-the-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!