Вы можете отправить словарь в следующий TableView. Импортируйте файл .h-файла SecondTableView в свой контроллер FirstTableView, а затем обратитесь к целевому словарю. Вам также потребуется реализовать prepareForSegue и вызвать его в файле didSelectRowAtIndexPath. Что-то вроде этого:
В файле didSelectRowAtIndexPath: (убедитесь, что вы установите идентификатор segue в Storyboard, если вы его используете).
[self performSegueWithIdentifier:@"toSecondTableViewController" sender:nil];
В SecondTableViewController.h создайте свой словарь
@property (nonatomic, retain)NSMutableDictionary *selectedDictionary;
Убедитесь, что это синтезировано в файле SecondTableViewController.m.
а затем в вашем FirstTableViewController
#import SecondTableViewController.h
//prepareForSegue
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"toSecondTableViewController"])
{
//create the dictionary to store the information from the array
NSDictionary *dictionaryToPass;
//MainTable is your TableView in your TableViewController
NSIndexPath *indexpath = [self.MainTable indexPathForSelectedRow];
NSLog(@"IndexPath is: %@",indexpath);
//load correct information based on indexpath selected
dictionaryToPass = [array objectAtIndex:indexpath.row];
//create the view for the segue
SecondTableViewController *secondTable = segue.destinationViewController;
//pass the dictionary
seriesTable.selectedDictionary = dictionaryToPass;
}
}
Затем вы можете ссылаться на ключи в выбранном документе в SecondTableViewController и получать этот URL.