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 7032347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:55:24+00:00 2026-05-28T00:55:24+00:00

i am making an iPad application, i want to load 2 webPage on single

  • 0

i am making an iPad application,

i want to load 2 webPage on single UIWebView one after another,

1st webpage should come when i load my application,and 2nd webpage should come on click of cell of tableView,

so,inside my didLoad method i am writing this (1st webpage),

   NSString *urlAddress = @"http://www.google.com";

      //Create a URL object.
     NSURL *url = [NSURL URLWithString:urlAddress];

     //URL Requst Object
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

    //Load the request in the UIWebView.
   [webView loadRequest:requestObj];

it works fine..

but on the same page on same webview on click of cell of tableView i want to load another page,(2nd webpage)
i written code for loading 2nd webPage,

here is the code snippet for 2nd webPage,

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
 DatabasesViewController *nextController=[[DatabasesViewController alloc]initWithNibName:@"DatabasesViewController" bundle:nil];

        [self.navigationController pushViewController:nextController animated:YES];
        [nextController changeProductText:[a objectAtIndex:indexPath.row]];
        [nextController changeProductText1:[b objectAtIndex:indexPath.row]];
        [nextController changeProductText2:[d objectAtIndex:indexPath.row]];

}

when i selects a cell inside tableView,
it navigates to new view, i don’t want to navigate, i want to stay on same page what changes should i do in above function ?

in above function changeProductText,changeProductText1,changeProductText2, are three IBAction and a,b,d are my array names.

- (IBAction) changeProductText:(NSString *)str{

    l1=@"http://ipad.appel.com/indexcharts.aspx?id=";
    l2=str;

    NSString *str1 = [l1 stringByAppendingString:l2];

    NSURL *url2=[NSURL URLWithString:str1];
    NSURLRequest *req2=[NSURLRequest requestWithURL:url2];
    [webView loadRequest:req2];
}

when i click on cell of tableView webView is not displaying,

do i need to clear webpage or reload webpage something like that ?

Help Me Guys, Thanx in Advance !!

  • 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-05-28T00:55:25+00:00Added an answer on May 28, 2026 at 12:55 am

    I think You can use the UISplitViewController for this issue.

    EDIT : Now check out the code like this..

       -(void)tableView:(UITableView *)tableView didSelectedRowAtIndexPath:
                    (NSIndexPath *)indexPath
                {
                     NSString *urlString = [siteAddress objectAtIndex : indexPath.row];
                     detailViewController.webView.scalesPageToFit= yes;
                     NSUrl *url = [NSUrlRequest requestWithURL : url];
                     [detailViewController.webView loadRequest : request];
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am making iPad application, in which i am fetching data from Url, after
I am making an application of e book reading, in that i want to
I'm making my first iOS application to be run specifically on an iPad as
i am new to iPad development. I am making iPad applications. In my application
I'm currently making ipad application. I have create an uiviewcontroller which is appear with
I'making website which is for all desktop/iPad/iPhone. In one page I have header and
I am totally new to making ipad/iphone application. I am totally new to using
I have an iphone application but i want to make it run on ipad
I am making my first iPad application, and I need to add the functionality
I am making an universal application for iPhone and iPad. I know there is

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.