I want to pass a value to a property from one class to another.
In LAClaimReportViewController
, I have a property
@property (strong, nonatomic) LAClaimReport *claimReport;
I want to pass the value to claimReport property (of LAClaimReportViewController)from below code of masterViewController.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([record.submitted isEqualToNumber:@0] && record != _selectedReport)
{
[self.detailViewController.navigationController popToRootViewControllerAnimated:NO];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
LAClaimReportViewController *claimReportViewController = [storyboard instantiateViewControllerWithIdentifier:@"ClaimReportView"];
[self.detailViewController.navigationController pushViewController:claimReportViewController animated:YES];
//Question: i want to assign record to claimReport of LAClaimReportViewController. how to do that.
}
}