1
我有關於產品UIWebview
Xcode中如何停止視頻嵌入YouTube
我需要停止YouTube視頻時,我去到另一個網頁
這是我的代碼:
if (currentPage > 0 && currentPage < [book count]-1) {
[[self.scrollView.subviews objectAtIndex:currentPage-1]reload];
[[self.scrollView.subviews objectAtIndex:currentPage+1]reload];
}
這是非常好的當我用pageControl
但不好用didSelectItemAtIndexPath:
我試着去這樣
if (currentPage > 0 && currentPage < [book count]-indexPath.item) {
[[self.scrollView.subviews objectAtIndex:currentPage-indexPath.item]reload];
[[self.scrollView.subviews objectAtIndex:currentPage+indexPath.item]reload];
}
有時是工作,但有時不是。請幫忙。
非常感謝你@AHTOH我使用的是嵌入的YouTube,但我不需要在HTML頁面中更改代碼。 –