My problem :
[tableView reloadSections:[NSIndexSet indexSetWithIndex:[NSIndexPath indexPathForRow:1 inSection:currentIndex]] withRowAnimation:YES]; //passing argument 1 of indexSetWithindex makes integer from pointer without a cast
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
if (!self.editing) {
if(indexPath.section%2!=0)
{
ConsultationCarteV *consultationCarteV = [[ConsultationCarteV alloc] initWithNibName:@"ConsultationCarteV" bundle:nil];
// ...
// Pass the selected object to the new view controller.
[CartesManager sharedInstance].indexCarteCourante=indexPath.row ;
[CartesManager sharedInstance].isEditable = NO ;
[self.navigationController pushViewController:consultationCarteV animated:YES];
[consultationCarteV release];
}
else {
currentIndex = indexPath.section +1 ;
[tableView reloadSections:[NSIndexSet indexSetWithIndex:[NSIndexPath indexPathForRow:1 inSection:currentIndex]] withRowAnimation:YES]; //passing argument 1 of indexSetWithindex makes integer from pointer without a cast
}
}