4
HEJフェローを果たし、私は現在、iPad上で私のアプリ内で再生するにはユーチューブリンクを取得しようとしている、私はiPhone上で正しく動作する同じコードを取った:はiPadは、YouTubeのリンクに</p> <p>を
-(void)playString:(NSString*)string{
NSString *youTubeVideoHTML = @"<html><head>\
<body style=\"margin:0\">\
<embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \
width=\"%0.0f\" height=\"%0.0f\"></embed>\
</body></html>";
// Populate HTML with the URL and requested frame size
NSString *html = [NSString stringWithFormat:youTubeVideoHTML, string, self.frame.size.width, self.frame.size.height];
// Load the html into the webview
[self loadHTMLString:html baseURL:nil];
}
次のように私のビュー階層に見える:
UISplitViewControler
root
table
detail
UIViewController
mittels [self.view addSubview:sec.view] hinzugefügter "Popup"-Controller
UIWebView auf UIButton
インタラクティブユーチューブ認識WOユーザがuiwebviewの中に挿入されたボタンをタップすると(自動的に配置されます)、ビデオはフルスクリーンには変わりませんが、代わりに小さいサムネイルで再生されます。ユーザーが手動でwebview内の2つの「矢印」をタップすると、それが表示されます。
どのような考えですか?
申し訳ありませんが、運... –