ya true
Quote:
- (IBAction) video: (id)sender {
NSString *string = [webView stringByEvaluatingJavaScriptFromString:
@"document.body.innerHTML.substring(document.body. innerHTML.lastIndexOf('embed src=')+11, "];
fileURL = [NSURL URLWithString:string];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:string]]];
|
When I use that and I click on the action button I have a blank page when there is no embed video.
Not like ..
Quote:
|
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: string]];
|
When there was no embed video, the button didn't do anything.
So how to use [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:string]]] without having that blank page?