我有这段代码
htmlString = @"<html><head><meta name = \"viewport\" content = \"initial-scale = 1.0, user-scalable = no, width = 212\"/></head>
body style=\"margin-top:10px;margin-left:8px\"><div><object width=\"212\" height=\"172\"><param name=\"movie\" value='%@'></param><param name=\"wmode\" value=\"transparent\"></param><embed id = 'foo' src='%@' type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"708\" height=\"400\"></embed></object></div></body></html>";
我的应用方向全是肖像。但是我希望UIWebView
中嵌入的youtube可以拥有横向全屏。我的应用有UITabBar
,而且从我看到的是苹果,
UITabBarController
或UINavigationController
中的所有子视图控制器都不同意共同的方向集。
我怎么能这样做我的应用程序是肖像,但在播放youtube嵌入全屏时可以在横向模式?
谢谢!