Webview Landscape

你说的曾经没有我的故事 提交于 2020-02-02 08:38:54

问题


I'm trying to figure out a way to make it so that my ios webview is in landscape mode while the rest of my app is in portrait. Does anyone know if this is possible?

I have a video section that I link out to vimeo. The vimeo video player is brought up in webview which is the portion I would like in landscape.


回答1:


you must do it programatically in the shouldAutorotateToInterfaceOrientation webview.transform=CGAffineTransformMakeRotation(M_PI/2);



来源:https://stackoverflow.com/questions/9982518/webview-landscape

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