Webview Landscape
问题 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