从 tabelview 发送文本到标签和数字到 int 到 viewcontroller 但它不工作
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
pushnavViewController *detailViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"pushnavViewController"];
[self.navigationController pushViewController:detailViewController animated:YES];
detailViewController.pushh.text = [IDNum objectAtIndex:indexPath.row];
detailViewController.pushh.text = [listt objectAtIndex:indexPath.row];
}
我也尝试过这样做,但没有工作:
detailViewController.pushh.text = [IDNum objectAtIndex:indexPath.row];
detailViewController.pushh.text = [listt objectAtIndex:indexPath.row];
[self.navigationController pushViewController:detailViewController animated:YES];
我制作了所有属性并合成了它们:
@property (nonatomic) UILabel *pushh;
@property (nonatomic) UILabel *IDnumber;
那么,有什么想法吗?
NSArray *listt,*IDNum;