我有一个应用程序,里面有两个栏。其中一个选项卡 .xib 包括UITableView
,当用户选择其中一个单元格时,我想显示另一个UIViewcontroller
(.xib 文件),其中包含有关他的选择的信息。
现在,我已经尝试过了
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
*)indexPath {
NextViewController *nextController = [[NextViewController alloc] initWithNibName:@"NextView" bundle:nil];
[self.navigationController pushViewController:nextController animated:YES]; [nextController changeProductText:[arryData objectAtIndex:indexPath.row]];
}
什么也没发生,控制台根本没有显示任何错误。
似乎是什么问题?
谢谢!