i have button in mainView when i click mainview button(id 1) its actions to call nextView [secondview have tableView] tableView cell first row selected or highlighted state.its state is set to selected.
-(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];
}
You can look at my button action method. I have tried many options but with no success. Please help on this.
tableView:didSelectRowAtIndex:is actually the delegate method called when you select a row.To select the row, you need to call