forum

Home / DeveloperSection / Forums / Getting indexpath in prepareForSegue

Getting indexpath in prepareForSegue

Mark Devid 2586 18-Oct-2014
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender 
    {
    if ([segue.identifier isEqualToString:@"Action"])
    {
        NSIndexPath *indexPath = [self.tbl indexPathForSelectedRow];
        SecondViewController *destViewController = segue.destinationViewController;
        destViewController.getString = [getArray objectAtIndex:indexPath.row];
    }
}
i wanna to access the selected row index,but show null for every selected row. please help me?

Updated on 18-Oct-2014

Can you answer this question?


Answer

1 Answers

Liked By