在我的标签栏应用程序的第一个标签上有一个表格视图。然后,当单击任何行时,我想要推送 secondviewController 的视图。并且有标签。标签的文本必须是选定行的文本。我试试这个,但没有进入第二个标签:S 我该怎么做???在 secondViewController 类也有 3 个视图。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
SecondViewController *detailViewController = [[SecondViewController alloc] initWithNibName:@"SecondView" bundle:nil];
// ...
// Pass the selected object to the new view controller.
NSUInteger row2 = [indexPath row];
denemelik=row2;
[self.navigationController pushViewController:detailViewController animated:YES];
detailViewController.enyakinfirma.text= [ws2.CustomerName objectAtIndex:[indexPath row]];
NSLog(@"kontrol2 %@",ws2.CustomerName);
[detailViewController release];
}