J'ai un bouton dans mainView quand je clique sur le bouton mainview (id 1) ses actions pour appeler nextView [secondview have tableView] tableView cellule première ligne sélectionnée ou en surbrillance state.its état est mis à sélectionné.Appuyez sur UIButton et pour appeler son action vue suivante table cellule sélectionnée état sélectionné?
-(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];
}
Vous pouvez consulter la méthode d'action de mon bouton. J'ai essayé beaucoup d'options mais sans succès. S'il vous plaît aider à ce sujet.
Maintenant, ça fonctionne bien merci ... – Ravindhiran