虽然使用的DetailViewController
值不是从 传递的UITabelViewController
,但代码有问题吗?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
detailedvu *dvController = [[detailedvu alloc] initWithNibName:@"detailedvu" bundle:[NSBundle mainBundle]];
if (0 == indexPath.row)
{
NSLog(@"0");
dvController.lb1.text = @"Make";
}
[self.navigationController pushViewController:dvController animated:YES];
}
请帮我整理一下。