雖然使用DetailViewController
值不是從UITabelViewController
傳遞,是否有任何錯誤的代碼?detailview控制器值沒有顯示
- (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];
}
請幫我整理一下。
您的代碼對發生的事情不是非常具有描述性。 順便說一句,你應該用大寫命名的類:) – RubenVot 2013-02-19 14:14:52
post dvController.h – 2013-02-19 14:15:35