在下图中,您可以看到YouTube视频周围有空白区域。它位于UIWebView内部如何删除它?
override func viewDidLoad() {
self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
youtubeVideo.loadHTMLString("<iframe width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/lv_8StGEegc\" frameborder=\"0\" allowfullscreen></iframe>", baseURL: nil)
//Code I tried
// youtubeVideo.scrollView.isScrollEnabled = false;
// youtubeVideo.scrollView.bounces = false;
// youtubeVideo.clipsToBounds = true
super.viewDidLoad()
}