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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:07:26+00:00 2026-05-18T02:07:26+00:00

First…if no one can answer this question it’s ok… because I don’t know how

  • 0

First…if no one can answer this question it’s ok…

because I don’t know how to ask this question in the correctly description

my program is get the plist data from URL and show it on the iphone tableview

My colleagues give me two URL to get the plist data

So I have two tableviews(tableview1,tableview2)

two URLs(URL1,URL2)

My tableview1 via URL1 get a plist1 ,and tableview1 has 3 contents in first 3 rows

ex.(row0 id1),(row1 id2),(row2 id3)

When I select row0 ,it will jump to tableview2 and with a title id1 on the navgation bar

so far is I can do…

but at tableview2 ,it need a URL like: http://www.URL2.php?id=1 =>that means…

I have to add my tableview title after URL2

to get the right plist related the id 1

my question is …….URL2 is static,how to make it like dynamic to get the right URL address ???

well…..first time I thought my colleagues will give me a data like array of array

But it’s not…I never try use URL like dynamic…

This is code in the tableview1 to let me get the plist from URL

 NSURLRequest *theRequest=[NSURLRequest requestWithURL:appDelegate.URL1//I declare the  URL at appDelegate.m for some reasons...
                                                  cachePolicy:NSURLRequestUseProtocolCachePolicy
                                              timeoutInterval:60.0];
      NSData *returnData = [NSURLConnection sendSynchronousRequest:theRequest
                           returningResponse:nil error:nil]; 
      NSString *listFile = [[NSString alloc] initWithData:returnData encoding:NSASCIIStringEncoding];   
              self.array = [listFile propertyList];//I parse the data from array to tablecview

and this is how I parse the title from Tableview1 to Tableview2

- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {

    TableView2 *tb2 = [[TableView2 alloc]init];
    tb2.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    tb2.title = [[[array objectAtIndex:indexPath.row] valueForKey:@"name"]description];
    [self.navigationController pushViewController:tb2 animated:YES];   }

Any ideas ?

well …if someone can answer this or give me a direction I will very appreciate

Great Thanks for All Reply and Answers !!!

Oh…one more thing,I can use ASIHTTPRequest to post a data

but I don’t know how to get data after post …?(is this help ?)

  • 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-18T02:07:26+00:00Added an answer on May 18, 2026 at 2:07 am

    Assuming you have a string that you want to append to appDelegate.URL1 declared as:

    NSString *stringToAppend = @"whatever";
    

    Then you can produce a string containing the new URL:

    NSString *newURLAsString = [NSString stringWithFormat:@"%@%@",[appDelegate.URL1 absoluteString],stringToAppend];
    

    And an NSURL from this string:

    NSURL *newURL = [NSURL URLWithString:newURLAsString];
    

    And the NSURLRequest from that:

    NSURLRequest *theRequest=[NSURLRequest requestWithURL:newURL
                                           cachePolicy:NSURLRequestUseProtocolCachePolicy
                                           timeoutInterval:60.0];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.