私のタブバーアプリケーションのfirsタブにテーブルビューがあります。その後、任意の行をクリックすると、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];
}
私は –
はそうsecondViewControllerクラスがsecondViewを押していない別の2のビューを持っているということです:(これを試してみましたが、まだ動作しません:( –
あなたは私を助けてchould私は道を解決したことができません:?。S:S –