Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8942397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:30:18+00:00 2026-06-15T11:30:18+00:00

I’d like to start by apologising as I’m sure this question has been answered,

  • 0

I’d like to start by apologising as I’m sure this question has been answered, in various forms on this site and others, but I just can’t seem to implement any similar threads

It’s just I have been trying to push a array of search engines into my webView,
I have populated the table with a .plist or NSMutableArray and I have an array of both kinds with Url’s in I have manages to load a subview but I an really struggling to get my web view loading.
I think I’m ok until didSelectRowAtIndexPath and the webView load request. Ok thinking about it I have only populated the table and put IBOUTLET (nonatomic, retain) UIWebView *webView and synthesised it in my WebViewController.
And as Background my TableViewController is embedded in a NavigationController and a WebView in a UIViewController
If anyone is willing to help me out I’m more than willing to donate as this has caused way too many sleepless nights.

Here is a link to my project if it would help anyone http://dl.dropbox.com/u/28335617/TableViewArrays.zip

Thank you very much for any help offered

Here is my TableViewController.h

@class WebViewController;
#import <UIKit/UIKit.h>
@interface TableViewController : UITableViewController <UITableViewDataSource,   UITableViewDelegate> {
       WebViewController *viewController;
    IBOutlet UITableView *mytableView;

}

@property (strong, nonatomic) IBOutlet UITableView *mytableView;

@property (nonatomic, retain) WebViewController *viewController;

@property (nonatomic, retain) NSMutableArray *searchData, *tableData, *tableUrl;
@end

Here is my TableViewController.m

    #import "TableViewController.h"
    #import "TableAppDelegate.h"
    #import "WebViewController.h"
    @interface TableViewController ()

    @end

    @implementation TableViewController
    @synthesize mytableView;
    @synthesize viewController;
    @synthesize searchData, tableData, tableUrl;
     NSMutableArray *searchData, *tableData, *tableUrl;



    - (void)viewDidLoad
    {
        [super viewDidLoad];



     tableUrl = [[NSMutableArray alloc] init];

    [tableUrl addObject: @"http://www.google.com"];
    [tableUrl addObject: @"http://www.bing.com"];
[tableUrl addObject: @"http://www.dogpile.com"];
[tableUrl addObject: @"http://www.wikipedia.com"];
[tableUrl addObject: @"http://www.ask.com"];
[tableUrl addObject: @"http://www.yahoo.com"];
    [tableUrl addObject: @"http://www.aol.com"];
[tableUrl addObject: @"http://www.altavista.com"];
[tableUrl addObject: @"http://www.gigablast.com"];
[tableUrl addObject: @"http://www.msn.com"];
[tableUrl addObject: @"http://www.mamma.com"];
    self.title = @"Search Engines";


            //ARRAY FOR PLIST
       // Find out the path of recipes.plist
        NSString *path = [[NSBundle mainBundle] pathForResource:@"searchData"      ofType:@"plist"];
                       searchData = [[NSMutableArray alloc] initWithContentsOfFile:path];

        // Load the file content and read the data into arrays 
       NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:path];
        tableData = [dict objectForKey:@"SearchEngines"];
       // tableUrl = [dict objectForKey:@"SearchAddress"];

   // NSString *path = [[NSBundle mainBundle] pathForResource:@"sEArray" ofType:@"plist"];
                     // sEArray = [[NSMutableArray alloc] initWithContentsOfFile:path];

      // NSString *urlArray = [[NSBundle mainBundle] pathForResource:@"urlsArray" ofType:@"plist"];
                      //urlsArray = [[NSMutableArray alloc] initWithContentsOfFile:urlArray];

    }

    - (void)didReceiveMemoryWarning
    {
        [super didReceiveMemoryWarning];
       // Dispose of any resources that can be recreated.
    }

    #pragma mark - Table view data source

    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
    {

        // Return the number of sections.
        return 1;
    }

     - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection: (NSInteger)section
    {

        // Return the number of rows in the section.
       return [self.tableData count];
    }

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
    {
        static NSString *CellIdentifier = @"Cell";
        UITableViewCell *cell = [tableView  dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
        if (cell == nil) {


        }

        // Configure the cell...
         NSInteger row = [indexPath row];
        cell.textLabel.text = [tableData objectAtIndex:row];
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        return cell;
     }








    #pragma mark - Table view delegate
    -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {



    }
     @end

And here is my WebViewController.h

    #import <UIKit/UIKit.h>

    @interface WebViewController : UIViewController {


    NSMutableArray *tableURL;
     }
    @property (nonatomic, retain) IBOutlet UIWebView *webView;
    @property (nonatomic, retain) NSMutableArray *tableUrl;
    @end

And WebViewController.m

    #import "TableAppDelegate.h"
    #import "TableViewController.h"
    #import "WebViewController.h"

   @interface WebViewController ()

   @end

   @implementation WebViewController 

   @synthesize tableUrl;
   @synthesize webView;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:30:19+00:00Added an answer on June 15, 2026 at 11:30 am

    Not tested. Add SequgeIdentifier “WebView” in IB

    in tableviewcontroller add:

            - (void)viewDidLoad
            {
        ...
            tableUrl = [dict objectForKey:@"SearchAddress"];
            }
    
    -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
            [self performSegueWithIdentifier:@"WebView" sender:self];
        }
    
    
        - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
            if ([[segue identifier] isEqualToString:@"WebView"])
            {
                WebViewController *webViewController = segue.destinationViewController;
    
                NSIndexPath *selectedPath = [self.tableView indexPathForSelectedRow];
                webViewController.tableUrl = [tableUrl objectAtIndex:[selectedPath row]];
                [self.tableView deselectRowAtIndexPath:selectedPath animated:YES];
            }
    
        }
    

    in webviewcontroller

    @interface WebViewController : UIViewController {
            NSString *tableURL;
        }
    @property (nonatomic, retain) IBOutlet UIWebView *webView;
    @property (nonatomic, retain) NSString *tableUrl;
    @end
    
    - (void)viewDidLoad
    {
        [super viewDidLoad];
        // Do any additional setup after loading the view.
        //Create a URL object.
        NSURL *url = [NSURL URLWithString:tableUrl];
    
        //URL Requst Object
        NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
    
        //Load the request in the UIWebView.
        [webView loadRequest:requestObj];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
This could be a duplicate question, but I have no idea what search terms
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
For some reason, after submitting a string like this Jack’s Spindle from a text
I want to count how many characters a certain string has in PHP, but
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I need to clean up various Word 'smart' characters in user input, including but
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.