ユーザーが UITableView で別の行を選択すると変化する UIWebView にリンクをロードしようとしています。現在、以下のコードを使用していますが、正しく動作していません。
これは、iOS 開発本のサンプル コードに基づいています。そのコードはここにあります。サンプルコードソース「http://dl.dropbox.com/u/32355989/YoutubeVideoPlayer.zip」
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *youtubeURLString = [NSString stringWithFormat:@"http://www.youtube.com/v/%@",[videos objectAtIndex:indexPath.row]];
NSString *html = [NSString stringWithFormat:YOUTUBE_HTML,youtubeURLString];
[webView loadHTMLString:html baseURL:nil]; //<--This is the point.
}
ページを正しくロードする方法を知っている人はいますか?