Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I am new to this.

I followed this tutorial:
http://www.techotopia.com/index.php/Implementing_iOS_7_TableView_Navigation_using_Storyboards_in_Xcode_5

Issue:
When I run the program, information from the table cells is not pushed to the next scene (details page). Why might this be happening (I have followed the tutorial very closely)?

Thanks.

Please post a code sample in order to help us help you. Based on the current information I can only guess that something's gone wrong in your prepareForSegue method. First of all, have you set the segue's identifier to be "ShowCardDetails"? This is done in the storyboard itself and explained in the first paragraph of the "Establishing the Storyboard Segue" section in that tutorial.

If you haven't done so then the prepareForSegue method (below) will not execute the code within the if statement, meaning that the detail view controller will not get the information it requires.

Code:
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
[B]    if ([[segue identifier] isEqualToString:@"ShowCarDetails"])
[/B]    {
        CarDetailViewController *detailViewController =
           [segue destinationViewController];

        NSIndexPath *myIndexPath = [self.tableView
           indexPathForSelectedRow];

        long row = [myIndexPath row];

        detailViewController.carDetailModel = @[_carMakes[row],
        _carModels[row], _carImages[row]];
    }
}
 
Please post a code sample in order to help us help you. Based on the current information I can only guess that something's gone wrong in your prepareForSegue method. First of all, have you set the segue's identifier to be "ShowCardDetails"? This is done in the storyboard itself and explained in the first paragraph of the "Establishing the Storyboard Segue" section in that tutorial.

If you haven't done so then the prepareForSegue method (below) will not execute the code within the if statement, meaning that the detail view controller will not get the information it requires.

Code:
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
[B]    if ([[segue identifier] isEqualToString:@"ShowCarDetails"])
[/B]    {
        CarDetailViewController *detailViewController =
           [segue destinationViewController];

        NSIndexPath *myIndexPath = [self.tableView
           indexPathForSelectedRow];

        long row = [myIndexPath row];

        detailViewController.carDetailModel = @[_carMakes[row],
        _carModels[row], _carImages[row]];
    }
}

Thanks a lot! Very simple fix: I was missing a letter in the identifier. Ha, ha... Sorry, I can't believe I missed that.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.