タブ バー アプリケーションの最初のタブにテーブル ビューがあります。次に、任意の行をクリックすると、secondviewController のビューをプッシュします。そしてラベルがあります。ラベルのテキストは、選択された行のテキストである必要があります。私はこれを試してみましたが、2番目のタブに入っていません: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];
}