Note that there are some explanatory texts on larger screens.

plurals
  1. POUIWebView not opening requested url from other view controller Objective C
    primarykey
    data
    text
    <h2>mainViewController.h</h2> <pre><code>#import "ECSlidingViewController.h" -(void)Loadwebview:(NSURL *)url; </code></pre> <h2>mainViewController.m</h2> <pre><code>-(void)Loadwebview:(NSURL *)url { // NSURL *testURL = [NSURL URLWithString:@"http://www.google.com"]; NSLog(@"loadwebview: %@", url); [webViewBox loadRequest:[NSURLRequest requestWithURL:url]]; } </code></pre> <h2>leftViewController.h</h2> <pre><code>#import "mainViewController.h" #import "ECSlidingViewController.h" </code></pre> <h2>leftViewController.m</h2> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSString *urlString = [[dao libraryItemAtIndex:indexPath.row] valueForKey:@"url"]; NSURL *url = [NSURL URLWithString:@"http://www.google.com"]; //urlString]; NSLog(@"selected url: %@", url); mainViewController *mvc = [[mainViewController alloc]init]; [mvc Loadwebview:url]; //NSLog(@"%@", [[dao libraryItemAtIndex:indexPath.row] valueForKey:@"url"]); [self.slidingViewController resetTopView]; //it will show mainViewController } </code></pre> <p>This code is not working... OutPut steps are, Log shows : </p> <blockquote> <p>Selected url: <a href="http://www.google.com" rel="nofollow">http://www.google.com</a> </p> <p>loadwebview: <a href="http://www.google.com" rel="nofollow">http://www.google.com</a></p> </blockquote> <p>which means I am passing url from <code>leftViewController.m</code> to <code>mainViewController.m</code> and calling <code>loadwebview</code> function properly. But the issue is that <code>webViewBox</code> is not opening requested url. :-(</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload