iOS UIWebview外部iframe有时无法加载



我有一个UIWebView,它包含一个外部iframe(适用于youtube和vimeo)
有时它只是不加载。

返回并重新渲染视图时 - 它确实加载

有人遇到过这个问题吗?

帧示例:

NSString *htmlStr = @"<html><head><title>.</title><style>body,html,iframe{margin:0;padding:0; background-color: rgb(233,229,229);}</style></head><body><iframe src="http://player.vimeo.com/video/52600303" width="320" height="170" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></body></html>";
[cell.externalVideoWebview loadHTMLString:htmlStr baseURL:nil];

虽然它在vimeo文档中,但在iOS中不需要webkitallowfullscreenmozallowfullscreen - 甚至可能是有害的,因为当我删除它们时 - 问题解决了(并且iframe加载速度更快)