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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:38:10+00:00 2026-06-01T18:38:10+00:00

I am trying to develop a RSS Reader drill down table with storyboard in

  • 0

I am trying to develop a RSS Reader drill down table with storyboard in a Tab bar app. I have managed to populate my RootTableViewController with the parsed XML. I am now having a problem working out how to get each row in my RootTableViewController to point and to pass the data from the selected cell to another DetailTableViewController.

This is part of my code to parse the XML and to populate the RootTableViewController:

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [stories count];
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"AdvCurrentCelly";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
    }
    int storyIndex = [indexPath indexAtPosition: [indexPath length] - 1];
    NSString *description =   [[stories objectAtIndex: storyIndex] objectForKey: @"description"];
    NSString *title = [[stories objectAtIndex: storyIndex] objectForKey: @"title"];

    //This populates the prototype cell 'AdvCurrentCelly'
    cell.textLabel.text = title;
    //cell.textLabel.text = date;
    cell.detailTextLabel.text = description

    return cell;

}

In Storyboard, the name of the segue from the RootTableViewContoller cell to the DetailTableViewController is ShowADVDetail

Help much appreciated

Jan

  • 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-01T18:38:11+00:00Added an answer on June 1, 2026 at 6:38 pm

    You can pass any type of data, but I’ll show you how to pass your Title string. Lets call it myString. First you need to add a property in your DetailTableViewController.h to store your string:

    @property (strong, nonatomic) NSString *myString

    In you RootTableViewController you need to tell the segue what to do. Use this code as an example:

    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    {
        // Refer to the correct segue
        if ([[segue identifier] isEqualToString:@"ShowADVDetail"]) {
    
            // Reference to destination view controller
            DetailTableViewController *vc = [segue destinationViewController];
    
            // get the selected index
            NSInteger selectedIndex = [[self.teamTable indexPathForSelectedRow] row];
    
            // Pass the title (from your array) to myString in DetailTableViewController: 
            vc.myString = [NSString stringWithFormat:@"%@", [[stories objectAtIndex:selectedIndex] objectForKey: @"Title"]];
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to develop my first ASP.NET MVC web app and have run into
I have been trying to develop an app for my ipad which i can
Im trying to develop a new FB App, however it seems they have changed
I'm trying to develop an Android RSS Reader. I would like to use android.sax
Iam trying to develop an iphone app having tab view as the base, within
im trying to develop an app for a win CE mobile device that downloads
I'm trying to develop an app using XNA and for state management I'm using
I am trying develop an Android app which uses Google maps. So for the
trying to develop web form using jquery. all i need is to have several
I am trying to develop a multi-screen app for the Google TV platform using

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.