mainviewボタン(id 1)をクリックすると、mainViewにボタンがあります。nextViewを呼び出すアクション[secondview have tableView]tableViewセルの最初の行が選択または強調表示された状態。その状態は選択済みに設定されます。
-(IBAction)btnOneClicked:(id)sender
{
SecondView *nextView = [[SecondView alloc] initWithNibName:@"SecondView" bundle:nil];
[self.navigationController pushViewController:SecondView animated:YES];
NSIndexPath* selectedCellIndexPath= [NSIndexPath indexPathForRow:0 inSection:0];
[nextView tableView:nextView.firstTable didSelectRowAtIndexPath:selectedCellIndexPath];
}
私のボタンアクションメソッドを見ることができます。私は多くのオプションを試しましたが、成功しませんでした。これを手伝ってください。