I have a TableView that load JSON content from web. I use AFNetworking and JSONModel. And I use this tutorial do Receive and Parse the Data Here is the code.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *identifier = @"CellIdentifier";
__weak ProgramacaoTableCell *cell = (ProgramacaoTableCell *)[self.tableView dequeueReusableCellWithIdentifier:identifier];
ProgramacaoModel* programacao = _programacao.programacaoArray[indexPath.row];
// NameLabel is the Label in the Cell.
cell.nameLabel.text = [NSString stringWithFormat:@"%@", programacao.atracao ];
return cell;
}
I want to know how pass this data to a Detail ViewController. In my DetailViewController i have the properties to receive the data.
@property (nonatomic, strong) IBOutlet UILabel *programacaoNomeLabel;