其實我有一個表視圖,當選擇rowAtIndexPath
然後它加載我的webView和播放我的視頻,如何從UIWebView
返回到我的tableView?如何自定義UIWebView?
-(void)playButtonPressed1:(UIButton*)sender
{
Video *currentVideo= [[xmlParservideo videoNames] objectAtIndex:btn1.tag];
NSLog(@"content============== %@", [currentVideo content2]);
CGRect webFrame = CGRectMake(0.0, 0.0, 320.0, 460.0);
UIWebView *webView = [[UIWebView alloc] initWithFrame:webFrame];
[webView setBackgroundColor:[UIColor greenColor]];
NSString *urlString=currentVideo.content2;
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
[[self view] addSubview:webView];
// [self.navigationController popViewControllerAnimated:YES];
NSLog(@"jointed2 jjjjjjjjj %d",btn1.tag);
如果您已添加在視圖或視圖控制器中或在相同的視圖中編輯你的webview? – Abhishek
你如何顯示你的UIWebView? – janusbalatbat
現在,我發佈了我所有的代碼 – islahul